Skip to content

Commit

Permalink
打包demo
Browse files Browse the repository at this point in the history
  • Loading branch information
molihuan committed May 11, 2024
1 parent 9d4d7e1 commit a70ddb3
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
特点:一键视频截屏插入笔记;在笔记上插入视频节点,点击视频节点跳转到视频指定时间点;笔记中插入图片,音频,视频;支持手写笔记;支持录音;多端联动(例如:电脑看视频,平板写笔记,点击平板截屏按钮可一键在笔记中插入电脑视频截图);支持插件系统,安装插件,扩展自定义功能;导出笔记为pdf;在pdf上做笔记;视频支持Bilibili,YouTube;



### 右上角给项目一个Star(小星星),你的支持是我更新的唯一动力。
### 一个人是孤独的,我们非常需要你!诚挚地邀请你上我们的贼船🏴‍☠️!

##### 加入我们吧!无论你是否会写代码,都可加入我们!
Expand Down Expand Up @@ -144,7 +144,7 @@ Gitee:

##### ios版编译注意事项

自测
[查看](doc/md/zh_CN/CompilationNotes/ios.md)

### 赞助

Expand Down
11 changes: 11 additions & 0 deletions doc/md/zh_CN/CompilationNotes/ios.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## ios版编译注意事项

国内可以配置镜像

ios目录下的Podfile开头添加

```sh
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
platform :ios, '12.0'
```

6 changes: 6 additions & 0 deletions doc/md/zh_CN/DevelopmentEnvironment.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

3 changes: 1 addition & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Future<void> main() async {
/// Necessary initialization for package:media_kit.
MediaKit.ensureInitialized();


///init nb_utils
await initialize();
print('初始化完毕');
Expand Down Expand Up @@ -45,7 +44,7 @@ class MyApp extends StatelessWidget {
///flutter_smart_dialog初始化
navigatorObservers: [FlutterSmartDialog.observer],
builder: FlutterSmartDialog.init(),

// 设置nb_util的全局key
navigatorKey: navigatorKey,
);
}
Expand Down
10 changes: 5 additions & 5 deletions lib/pages/main/widgets/main_show.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import 'package:note/pages/my/index.dart';

class MainShow extends GetView<MainController> {
MainShow({Key? key}) : super(key: key);

final List<Widget> viewList = [HomePage(), MyPage()];

// 视图列表
final List<Widget> viewList = [const HomePage(), const MyPage()];
// 导航按钮列表
final List<BottomNavigationBarItem> 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
Expand Down
24 changes: 24 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a70ddb3

Please sign in to comment.