diff --git a/README.md b/README.md index 1e093c6..accd3cb 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ 特点:一键视频截屏插入笔记;在笔记上插入视频节点,点击视频节点跳转到视频指定时间点;笔记中插入图片,音频,视频;支持手写笔记;支持录音;多端联动(例如:电脑看视频,平板写笔记,点击平板截屏按钮可一键在笔记中插入电脑视频截图);支持插件系统,安装插件,扩展自定义功能;导出笔记为pdf;在pdf上做笔记;视频支持Bilibili,YouTube; - +### 右上角给项目一个Star(小星星),你的支持是我更新的唯一动力。 ### 一个人是孤独的,我们非常需要你!诚挚地邀请你上我们的贼船🏴‍☠️! ##### 加入我们吧!无论你是否会写代码,都可加入我们! @@ -144,7 +144,7 @@ Gitee: ##### ios版编译注意事项 -自测 +[查看](doc/md/zh_CN/CompilationNotes/ios.md) ### 赞助 diff --git a/doc/md/zh_CN/CompilationNotes/ios.md b/doc/md/zh_CN/CompilationNotes/ios.md new file mode 100644 index 0000000..d519996 --- /dev/null +++ b/doc/md/zh_CN/CompilationNotes/ios.md @@ -0,0 +1,11 @@ +## ios版编译注意事项 + +国内可以配置镜像 + +ios目录下的Podfile开头添加 + +```sh +source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git' +platform :ios, '12.0' +``` + diff --git a/doc/md/zh_CN/DevelopmentEnvironment.md b/doc/md/zh_CN/DevelopmentEnvironment.md index 554ed3e..3584043 100644 --- a/doc/md/zh_CN/DevelopmentEnvironment.md +++ b/doc/md/zh_CN/DevelopmentEnvironment.md @@ -64,5 +64,11 @@ flutter create --platforms android . (安卓的包名必须为com.molihuan.note否则会白屏无法进入页面) 打包windows flutter build windows +打包mac +flutter build macos +打包安卓分架构 +flutter build apk --split-per-abi +打包ios +flutter build ios --release ``` diff --git a/lib/main.dart b/lib/main.dart index 7d2c1f0..e4a94a4 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -13,7 +13,6 @@ Future main() async { /// Necessary initialization for package:media_kit. MediaKit.ensureInitialized(); - ///init nb_utils await initialize(); print('初始化完毕'); @@ -45,7 +44,7 @@ class MyApp extends StatelessWidget { ///flutter_smart_dialog初始化 navigatorObservers: [FlutterSmartDialog.observer], builder: FlutterSmartDialog.init(), - + // 设置nb_util的全局key navigatorKey: navigatorKey, ); } diff --git a/lib/pages/main/widgets/main_show.dart b/lib/pages/main/widgets/main_show.dart index cf7c12c..20993a0 100644 --- a/lib/pages/main/widgets/main_show.dart +++ b/lib/pages/main/widgets/main_show.dart @@ -6,12 +6,12 @@ import 'package:note/pages/my/index.dart'; class MainShow extends GetView { MainShow({Key? key}) : super(key: key); - - final List viewList = [HomePage(), MyPage()]; - + // 视图列表 + final List viewList = [const HomePage(), const MyPage()]; + // 导航按钮列表 final List navigationBarItemList = [ - BottomNavigationBarItem(icon: Icon(Icons.home), label: 'home'.tr), - BottomNavigationBarItem(icon: Icon(Icons.account_circle), label: 'my'.tr), + BottomNavigationBarItem(icon: const Icon(Icons.home), label: 'home'.tr), + BottomNavigationBarItem(icon: const Icon(Icons.account_circle), label: 'my'.tr), ]; @override diff --git a/pubspec.lock b/pubspec.lock index b417bef..fe751e5 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -41,6 +41,14 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "2.11.0" + auto_size_text_pk: + dependency: transitive + description: + name: auto_size_text_pk + sha256: ced55de5336fa7f438c1f5a9aa234e25d7a120c1d40d376a7cdc2af28cdb6995 + url: "https://pub.flutter-io.cn" + source: hosted + version: "3.0.0" bloc: dependency: transitive description: @@ -1569,6 +1577,14 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "2.1.4" + velocity_x: + dependency: "direct main" + description: + name: velocity_x + sha256: "38585b8ed87c17ccb42a5c13d55bdafdc65e7cd3f41dceb61c38714c758fa228" + url: "https://pub.flutter-io.cn" + source: hosted + version: "4.1.2" video_player: dependency: transitive description: @@ -1625,6 +1641,14 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "2.0.7" + vxstate: + dependency: transitive + description: + name: vxstate + sha256: ed5a880018191c5cfed8528bd77f2a942b04847168ca12636a306c323d311086 + url: "https://pub.flutter-io.cn" + source: hosted + version: "2.3.0" wakelock_plus: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 8dce95f..b39d2b2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -18,6 +18,8 @@ dependencies: cupertino_icons: ^1.0.2 #ui库 getwidget: 4.0.0 + + velocity_x: ^4.1.2 #视频组件 media_kit: 1.1.10 # Primary package. media_kit_video: 1.2.4 # For video rendering.