diff --git a/README.md b/README.md index 5c2e14e..b1b124c 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,35 @@ -[![GitHub stars](https://img.shields.io/github/stars/toly1994328/FlutterUnit)](https://github.com/toly1994328/FlutterUnit/stargazers) -[![GitHub forks](https://img.shields.io/github/forks/toly1994328/FlutterUnit)](https://github.com/toly1994328/FlutterUnit/network) -[![GitHub license](https://img.shields.io/github/license/toly1994328/FlutterUnit)](https://github.com/toly1994328/FlutterUnit/blob/master/LICENSE) - -### FlutterUnit 下载体验: +#### Flutter Unit 周边 +- 🔥 [实体书 - 《Flutter之旅》源码下载地址 ](https://gitee.com/toly1994328/FlutterUnit/attach_files/466731/download) +- 🔥 [掘金小册 -《Flutter 绘制指南 - 妙笔生花》](https://juejin.im/book/6844733827265331214) +- 🔥 [掘金小册 -《Flutter 手势探索 - 执掌天下》](https://juejin.cn/book/6896378716427911181) +- 🔥 [掘金小册 -《Flutter 动画探索 - 流光幻影》](https://juejin.cn/book/6965102582473687071) +- [Flutter环境配置](https://github.com/toly1994328/FlutterUnit/issues/22) +- [Flutter实用插件集录 ](https://github.com/toly1994328/FlutterUnit/issues/41) +- [Flutter要点集录 ](https://github.com/toly1994328/FlutterUnit/labels/point) -| FlutterUnit.apk 下载 | FlutterUnit mac版 下载 | FlutterUnit win版 下载 | -|------|------------|------------| -|![](http://toly1994.com/file/ewm/FlutterUnit.png)|![](http://toly1994.com/file/ewm/FlutterUnitMac.png)| ![](http://toly1994.com/file/ewm/FlutterUnitWin.png)| +### FlutterUnit 下载体验: 复制链接,在浏览器下载~ + + +| 平台类型 | 下载地址 | 项目分支地址 | 相关文章 | +|------|------------|------|------------| +| Android版 | http://toly1994.com/file/FlutterUnit.apk |[flutter_unit](https://github.com/toly1994328/FlutterUnit)| [《FlutterUnit食用指南》](https://juejin.im/post/6844904147045597191)| +| iOS版 | 暂未提供,可自己下载项目运行 |[flutter_unit](https://github.com/toly1994328/FlutterUnit)| [《FlutterUnit 食用指南》](https://juejin.im/post/6844904147045597191)| +| MacOS版 | http://toly1994.com/file/flutter_unit_mac.zip |[flutter_unit_desk](https://github.com/toly1994328/FlutterUnit/tree/flutter_unit_desk)| [《mac版闪亮登场》](https://juejin.im/post/6844904147817332743)| +| Windows版 |http://toly1994.com/file/FlutterUnitWin.zip | [flutter_unit_desk](https://github.com/toly1994328/FlutterUnit/tree/flutter_unit_desk) | [《win版闪亮登场》](https://juejin.im/post/6847902222626488327)| +| Web版 | http://toly1994328.gitee.io/flutter_web | [ flutter_unit_web ](https://github.com/toly1994328/FlutterUnit/tree/flutter_unit_web) | [《web版闪亮登场》](https://juejin.im/post/6859888713980182541)| + +--- + +> 当前Flutter 版本 + +``` +Flutter 2.5.3 • channel stable • https://github.com/flutter/flutter.git +Framework • revision 18116933e7 (4 weeks ago) • 2021-10-15 10:46:35 -0700 +Engine • revision d3ea636dc5 +Tools • Dart 2.14.4 +``` --- @@ -21,152 +42,3 @@ Framework • revision 4cc385b4b8 (2 days ago) • 2021-09-07 23:01:49 -0700 Engine • revision f0826da7ef Tools • Dart 2.14.0 ``` - - -#### 一、如何运行出FlutterUnit mac - -##### 1. 如何使用Flutter mac - - -```! -目前稳定版(Stable)本并不支持macos,你可以切换到master分支进行体验。 -``` - - -- 环境: `重新准备一个FlutterSDK,并使用flutter master分支` -- 开启macos 桌面支持: `flutter config --enable-macos-desktop` - - -``` ----[• flutter config --enable-macos-desktop - ----[• flutter --version -Flutter 1.18.0-7.0.pre.46 • channel master • -https://github.com/flutter/flutter.git -Framework • revision 1f132e90f8 (11 days ago) • 2020-04-23 11:00:12 +0530 -Engine • revision d3f1c08f52 -Tools • Dart 2.9.0 (build 2.9.0-2.0.dev 64b8ded48b) -``` - - ---- - -##### 2. 如何获取FlutterUnit mac代码 - -- [FlutterUnit的github项目](https://github.com/toly1994328/FlutterUnit)中新建了一个[flutter_unit_mac](https://github.com/toly1994328/FlutterUnit/tree/flutter_unit_mac)的分支 -- FlutterUnit mac端,或说桌面端将在这个分支进行维护,和移动端独立。 - - -```! -由于移动端和桌面端的情况有很大的不同,而且两者需要的SDK不同。 -所以我并不在原移动端代码中进行适配,而是新建分支进行两个独立的项目。 -其实两种完全不同的情景,并没有必要强行合一,否则会感觉到处束手束脚。 -判断起来也会让代码变的复杂和难以阅读,独立维护也许是更好的选择。 -``` - -![](http://user-gold-cdn.xitu.io/2020/5/4/171e01af25f704cd?w=2206&h=1024&f=png&s=261719) - ---- - -##### 3. 如何运行和打包 - -- 获取依赖包: `flutter pub get` -- 运行命令: `flutter run -d macos`, 或直接通过`AndroidStudio` 选择设备运行 - -![](http://user-gold-cdn.xitu.io/2020/5/4/171e02c9d5ac5a77?w=1350&h=416&f=png&s=201897) - ---- - - -- 打包macos: `flutter build macos`,在`build/macos/Build/Release`中可以看到应用 - - -![](http://user-gold-cdn.xitu.io/2020/5/4/171e053343d30233?w=1938&h=710&f=png&s=232963) - ---- - -#### 二、. FlutterUnit mac 功能简述 - -> 由于mac端录屏出的gif太大了,就不放动图了,所有功能同`移动端` -使用详情可参见: [【 FlutterUnit 食用指南】 开源篇](https://juejin.im/post/5e94e4d3f265da480836b943) -本文会说一下我做FlutterUnit mac端的原因和一些界面的变动。 - ---- - -##### 1. FlutterUnit主页界面 - -- 对于桌面来说,最麻烦的当属`导航栏`了,如果直接用底栏或顶栏,那会非常丑 -- 通常需要左栏,当然这些对于`动手能力超强`的我,都是小菜。`有就用,没有就造。` -- 桌面程序`一般都很宽`,可以用GridView根据情况分多栏显示item,这样会好看些。 - -![](http://user-gold-cdn.xitu.io/2020/5/5/171e06fe81830630?w=1604&h=1248&f=png&s=1102121) - ---- - -##### 2. 左滑菜单栏 - -- 单击`右侧导航栏底部的设置`可以打开左侧的菜单 -- 也可以通过`左边滑`来打开左侧的菜单,菜单内容保持一致,功能保持一致 - -![](http://user-gold-cdn.xitu.io/2020/5/5/171e07714a69ec75?w=1606&h=1248&f=png&s=1020192) - ---- - -##### 3. 组件详情页 - -- 调整`相关组件`和介绍的位置,同排显示,好看一些。 - -![](http://user-gold-cdn.xitu.io/2020/5/5/171e07db1d9a76ca?w=1600&h=1252&f=png&s=335520) - ---- - -- 由于`Share插件`还不支持macos,这里`代码分享的功能直接改成代码复制`。 -- 代码面板的展开功能依旧存在,可通过展开按钮进行展开。 - -![](http://user-gold-cdn.xitu.io/2020/5/5/171e081d559218ca?w=2538&h=1250&f=png&s=810461) - ---- - -##### 4.收藏集功能正常 - -- 收藏集的`增删改查操作`和`移动端保持一致` - -![](http://user-gold-cdn.xitu.io/2020/5/4/171e013c38f568ab?w=1602&h=1248&f=png&s=1280615) - -![](http://user-gold-cdn.xitu.io/2020/5/5/171e0870a24a708a?w=1596&h=1252&f=png&s=1023631) - - -![](http://user-gold-cdn.xitu.io/2020/5/5/171e08b3a4b4230d?w=1608&h=1246&f=png&s=1117612) - - -![](http://user-gold-cdn.xitu.io/2020/5/5/171e08b52b960bbe?w=1616&h=1256&f=png&s=1145558) - - ---- - -##### 5. 组件详情页的添加收藏 - -> 功能保持一致 - -![](http://user-gold-cdn.xitu.io/2020/5/5/171e08d2c31a7c44?w=1608&h=1262&f=png&s=623031) - -![](http://user-gold-cdn.xitu.io/2020/5/5/171e08e573eb1217?w=1606&h=1248&f=png&s=341068) - - ---- - -##### 6. 搜索页 - -- 模糊查询 - -![](http://user-gold-cdn.xitu.io/2020/5/5/171e090788946055?w=1606&h=1262&f=png&s=401087) - -- 星级查询 - -![](http://user-gold-cdn.xitu.io/2020/5/5/171e090303d1f3af?w=1602&h=1258&f=png&s=465011) - - -> 其实适配到macos我就花了小半天的时间。主要就是主页右边栏的设计和实现。 -这也得益于项目的清晰,我知道哪些文件是干嘛的,所以抽离是很重要的,酌情抽出变量、方法或类,不要什么东西都塞在一起,一旦代码变动就是灭顶之灾。另外bloc维护的业务逻辑可以丝毫不动,只需将相关页面的一些结构进行调整即可,这也是bloc的优势。 - ----``` \ No newline at end of file diff --git a/lib/widget_system/widgets/MultiChildRenderObjectWidget/Flex/node1_direction.dart b/lib/widget_system/widgets/MultiChildRenderObjectWidget/Flex/node1_direction.dart index 6745f7d..e720715 100644 --- a/lib/widget_system/widgets/MultiChildRenderObjectWidget/Flex/node1_direction.dart +++ b/lib/widget_system/widgets/MultiChildRenderObjectWidget/Flex/node1_direction.dart @@ -13,23 +13,40 @@ import 'package:flutter/material.dart'; // "【direction】 : 方向 【Axis】", // } class DirectionFlex extends StatelessWidget { + static TextStyle textStyle = + TextStyle(color: Colors.white, fontWeight: FontWeight.bold); - final redBox= Container( - color: Colors.red, - height: 30, - width: 40, - ); - - final blueBox= Container( + final blueBox = Container( + alignment: Alignment.center, color: Colors.blue, height: 20, width: 30, + child: Text( + '1', + style: textStyle, + ), ); - final greenBox= Container( + final redBox = Container( + alignment: Alignment.center, + color: Colors.red, + height: 30, + width: 40, + child: Text( + '2', + style: textStyle, + ), + ); + + final greenBox = Container( + alignment: Alignment.center, color: Colors.green, height: 20, width: 20, + child: Text( + '3', + style: textStyle, + ), ); @override diff --git a/lib/widget_system/widgets/MultiChildRenderObjectWidget/Flex/node2_mainAxisAlignment.dart b/lib/widget_system/widgets/MultiChildRenderObjectWidget/Flex/node2_mainAxisAlignment.dart index 94e1f13..318855b 100644 --- a/lib/widget_system/widgets/MultiChildRenderObjectWidget/Flex/node2_mainAxisAlignment.dart +++ b/lib/widget_system/widgets/MultiChildRenderObjectWidget/Flex/node2_mainAxisAlignment.dart @@ -13,22 +13,40 @@ import 'package:flutter/material.dart'; // } class MainAxisAlignmentFlex extends StatelessWidget { - final redBox= Container( - color: Colors.red, - height: 30, - width: 40, - ); + static TextStyle textStyle = + TextStyle(color: Colors.white, fontWeight: FontWeight.bold); - final blueBox= Container( + final blueBox = Container( + alignment: Alignment.center, color: Colors.blue, height: 20, width: 30, + child: Text( + '1', + style: textStyle, + ), ); - final greenBox= Container( + final redBox = Container( + alignment: Alignment.center, + color: Colors.red, + height: 30, + width: 40, + child: Text( + '2', + style: textStyle, + ), + ); + + final greenBox = Container( + alignment: Alignment.center, color: Colors.green, height: 20, width: 20, + child: Text( + '3', + style: textStyle, + ), ); @override diff --git a/lib/widget_system/widgets/MultiChildRenderObjectWidget/Flex/node3_crossAxisAlignment.dart b/lib/widget_system/widgets/MultiChildRenderObjectWidget/Flex/node3_crossAxisAlignment.dart index e5570db..3c62757 100644 --- a/lib/widget_system/widgets/MultiChildRenderObjectWidget/Flex/node3_crossAxisAlignment.dart +++ b/lib/widget_system/widgets/MultiChildRenderObjectWidget/Flex/node3_crossAxisAlignment.dart @@ -13,22 +13,40 @@ import 'package:flutter/material.dart'; // } class CrossAxisAlignmentFlex extends StatelessWidget { - final redBox= Container( - color: Colors.red, - height: 30, - width: 40, - ); + static TextStyle textStyle = + TextStyle(color: Colors.white, fontWeight: FontWeight.bold); - final blueBox= Container( + final blueBox = Container( + alignment: Alignment.center, color: Colors.blue, height: 20, width: 30, + child: Text( + '1', + style: textStyle, + ), ); - final greenBox= Container( + final redBox = Container( + alignment: Alignment.center, + color: Colors.red, + height: 30, + width: 40, + child: Text( + '2', + style: textStyle, + ), + ); + + final greenBox = Container( + alignment: Alignment.center, color: Colors.green, height: 20, width: 20, + child: Text( + '3', + style: textStyle, + ), ); @override diff --git a/lib/widget_system/widgets/MultiChildRenderObjectWidget/Flex/node4_verticalDirection.dart b/lib/widget_system/widgets/MultiChildRenderObjectWidget/Flex/node4_verticalDirection.dart index 2a6f4f6..3365bd1 100644 --- a/lib/widget_system/widgets/MultiChildRenderObjectWidget/Flex/node4_verticalDirection.dart +++ b/lib/widget_system/widgets/MultiChildRenderObjectWidget/Flex/node4_verticalDirection.dart @@ -13,22 +13,40 @@ import 'package:flutter/material.dart'; // } class VerticalDirectionFlex extends StatelessWidget { - final redBox= Container( - color: Colors.red, - height: 30, - width: 40, - ); + static TextStyle textStyle = + TextStyle(color: Colors.white, fontWeight: FontWeight.bold); - final blueBox= Container( + final blueBox = Container( + alignment: Alignment.center, color: Colors.blue, height: 20, width: 30, + child: Text( + '1', + style: textStyle, + ), ); - final greenBox= Container( + final redBox = Container( + alignment: Alignment.center, + color: Colors.red, + height: 30, + width: 40, + child: Text( + '2', + style: textStyle, + ), + ); + + final greenBox = Container( + alignment: Alignment.center, color: Colors.green, height: 20, width: 20, + child: Text( + '3', + style: textStyle, + ), ); @override diff --git a/lib/widget_system/widgets/MultiChildRenderObjectWidget/Flex/node5_textDirection.dart b/lib/widget_system/widgets/MultiChildRenderObjectWidget/Flex/node5_textDirection.dart index d5c1a77..5f2cac6 100644 --- a/lib/widget_system/widgets/MultiChildRenderObjectWidget/Flex/node5_textDirection.dart +++ b/lib/widget_system/widgets/MultiChildRenderObjectWidget/Flex/node5_textDirection.dart @@ -13,22 +13,40 @@ import 'package:flutter/material.dart'; // } class TextDirectionFlex extends StatelessWidget { - final redBox= Container( - color: Colors.red, - height: 30, - width: 40, - ); + static TextStyle textStyle = + TextStyle(color: Colors.white, fontWeight: FontWeight.bold); - final blueBox= Container( + final blueBox = Container( + alignment: Alignment.center, color: Colors.blue, height: 20, width: 30, + child: Text( + '1', + style: textStyle, + ), ); - final greenBox= Container( + final redBox = Container( + alignment: Alignment.center, + color: Colors.red, + height: 30, + width: 40, + child: Text( + '2', + style: textStyle, + ), + ); + + final greenBox = Container( + alignment: Alignment.center, color: Colors.green, height: 20, width: 20, + child: Text( + '3', + style: textStyle, + ), ); @override diff --git a/lib/widget_system/widgets/StatefulWidget/BottomNavigationBar/node1_base.dart b/lib/widget_system/widgets/StatefulWidget/BottomNavigationBar/node1_base.dart index aa9822e..042058c 100755 --- a/lib/widget_system/widgets/StatefulWidget/BottomNavigationBar/node1_base.dart +++ b/lib/widget_system/widgets/StatefulWidget/BottomNavigationBar/node1_base.dart @@ -70,9 +70,7 @@ class _CustomBottomNavigationBarState extends State { showSelectedLabels: true, items: iconsMap.keys .map((key) => BottomNavigationBarItem( - title: Text( - key, - ), + label: key, icon: Icon(iconsMap[key]), backgroundColor: _colors[_position])) .toList(), diff --git a/lib/widget_system/widgets/StatefulWidget/BottomNavigationBar/node2_page.dart b/lib/widget_system/widgets/StatefulWidget/BottomNavigationBar/node2_page.dart index c8fd7aa..63984cb 100755 --- a/lib/widget_system/widgets/StatefulWidget/BottomNavigationBar/node2_page.dart +++ b/lib/widget_system/widgets/StatefulWidget/BottomNavigationBar/node2_page.dart @@ -90,10 +90,8 @@ class _BottomNavigationBarWithPageViewState showSelectedLabels: true, items: iconsMap.keys .map((key) => BottomNavigationBarItem( - title: Text( - key, - ), - icon: Icon(iconsMap[key]), + label: key, + icon: Icon(iconsMap[key]), backgroundColor: _colors[_position])) .toList(), ); diff --git a/lib/widget_system/widgets/StatefulWidget/CupertinoTabBar/node1_base.dart b/lib/widget_system/widgets/StatefulWidget/CupertinoTabBar/node1_base.dart index 69fe867..d9e1e8b 100755 --- a/lib/widget_system/widgets/StatefulWidget/CupertinoTabBar/node1_base.dart +++ b/lib/widget_system/widgets/StatefulWidget/CupertinoTabBar/node1_base.dart @@ -50,7 +50,7 @@ class _CustomCupertinoTabBarState extends State { icon: Icon( iconsMap[e], ), - title: Text(e), + label: e, )) .toList(), activeColor: Colors.blue, diff --git a/lib/widget_system/widgets/StatefulWidget/CupertinoTabScaffold/node1_base.dart b/lib/widget_system/widgets/StatefulWidget/CupertinoTabScaffold/node1_base.dart index 1ff6ba2..7619a16 100644 --- a/lib/widget_system/widgets/StatefulWidget/CupertinoTabScaffold/node1_base.dart +++ b/lib/widget_system/widgets/StatefulWidget/CupertinoTabScaffold/node1_base.dart @@ -51,7 +51,7 @@ class _CustomCupertinoTabScaffoldState icon: Icon( iconsMap[e], ), - title: Text(e), + label: e, )) .toList(), activeColor: Colors.blue, diff --git a/lib/widget_system/widgets/StatefulWidget/Scaffold/node1_base.dart b/lib/widget_system/widgets/StatefulWidget/Scaffold/node1_base.dart index 84b072e..af496bd 100755 --- a/lib/widget_system/widgets/StatefulWidget/Scaffold/node1_base.dart +++ b/lib/widget_system/widgets/StatefulWidget/Scaffold/node1_base.dart @@ -109,9 +109,7 @@ class _CustomScaffoldState extends State with SingleTickerProviderStateMixin { showSelectedLabels: true, items: iconsMap.keys .map((key) => BottomNavigationBarItem( - title: Text( - key, - ), + label: key, icon: Icon(iconsMap[key]), backgroundColor: _colors[_position])) .toList(), diff --git a/lib/widget_system/widgets/StatefulWidget/Stepper/node1_base.dart b/lib/widget_system/widgets/StatefulWidget/Stepper/node1_base.dart index bf4e654..418e4b3 100644 --- a/lib/widget_system/widgets/StatefulWidget/Stepper/node1_base.dart +++ b/lib/widget_system/widgets/StatefulWidget/Stepper/node1_base.dart @@ -63,8 +63,7 @@ class _StepperDemoState extends State { }); } }, - controlsBuilder: (_, - {VoidCallback? onStepContinue, VoidCallback? onStepCancel}) { + controlsBuilder: (_, ControlsDetails details) { return Row( children: [ RaisedButton( @@ -72,7 +71,7 @@ class _StepperDemoState extends State { shape: CircleBorder( side: BorderSide(width: 2.0, color: Color(0xFFFFDFDFDF)), ), - onPressed: onStepContinue, + onPressed: details.onStepContinue, child: Icon( Icons.check, color: Colors.white, @@ -83,7 +82,7 @@ class _StepperDemoState extends State { shape: CircleBorder( side: BorderSide(width: 2.0, color: Color(0xFFFFDFDFDF)), ), - onPressed: onStepCancel, + onPressed: details.onStepCancel, child: Icon( Icons.keyboard_backspace, color: Colors.white, @@ -95,11 +94,11 @@ class _StepperDemoState extends State { steps: stepsData.keys.map((e){ bool isActive = stepsData.keys.toList().indexOf(e) ==_position; return Step( - title: Text(e,style: TextStyle(color: isActive?Colors.blue:Colors.black),), - isActive: isActive, - state: _getState(stepsData.keys.toList().indexOf(e)), - content: Container(height: 60, child: Text(stepsData[e]!)), - ); + title: Text(e,style: TextStyle(color: isActive?Colors.blue:Colors.black),), + isActive: isActive, + state: _getState(stepsData.keys.toList().indexOf(e)), + content: Container(height: 60, child: Text(stepsData[e]!)), + ); }).toList()), ); } diff --git a/lib/widget_system/widgets/StatefulWidget/Stepper/node2_type.dart b/lib/widget_system/widgets/StatefulWidget/Stepper/node2_type.dart index e55be7a..6a4bb20 100644 --- a/lib/widget_system/widgets/StatefulWidget/Stepper/node2_type.dart +++ b/lib/widget_system/widgets/StatefulWidget/Stepper/node2_type.dart @@ -59,8 +59,7 @@ class _VerticalStepperState extends State { }); } }, - controlsBuilder: (_, - {VoidCallback? onStepContinue, VoidCallback? onStepCancel}) { + controlsBuilder: (_,ControlsDetails details) { return Row( children: [ RaisedButton( @@ -68,7 +67,7 @@ class _VerticalStepperState extends State { shape: CircleBorder( side: BorderSide(width: 2.0, color: Color(0xFFFFDFDFDF)), ), - onPressed: onStepContinue, + onPressed: details.onStepContinue, child: Icon( Icons.check, color: Colors.white, @@ -79,7 +78,7 @@ class _VerticalStepperState extends State { shape: CircleBorder( side: BorderSide(width: 2.0, color: Color(0xFFFFDFDFDF)), ), - onPressed: onStepCancel, + onPressed: details.onStepCancel, child: Icon( Icons.keyboard_backspace, color: Colors.white, diff --git a/lib/widget_system/widgets/StatelessWidget/PageStorage/node1_base.dart b/lib/widget_system/widgets/StatelessWidget/PageStorage/node1_base.dart index 390978f..143cd32 100644 --- a/lib/widget_system/widgets/StatelessWidget/PageStorage/node1_base.dart +++ b/lib/widget_system/widgets/StatelessWidget/PageStorage/node1_base.dart @@ -42,11 +42,11 @@ class _PageStorageDemoState extends State { items: [ BottomNavigationBarItem( icon: Icon(Icons.home), - title: Text('Home'), + label: 'Home', ), BottomNavigationBarItem( icon: Icon(Icons.settings), - title: Text('Setting'), + label: 'Setting', ), ], ), diff --git a/pubspec.lock b/pubspec.lock index be4ca83..33d62ad 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -21,7 +21,7 @@ packages: name: async url: "https://pub.flutter-io.cn" source: hosted - version: "2.7.0" + version: "2.8.2" bloc: dependency: transitive description: @@ -42,7 +42,7 @@ packages: name: characters url: "https://pub.flutter-io.cn" source: hosted - version: "1.1.0" + version: "1.2.0" charcode: dependency: transitive description: @@ -197,14 +197,21 @@ packages: name: matcher url: "https://pub.flutter-io.cn" source: hosted - version: "0.12.10" + version: "0.12.11" + material_color_utilities: + dependency: transitive + description: + name: material_color_utilities + url: "https://pub.flutter-io.cn" + source: hosted + version: "0.1.3" meta: dependency: transitive description: name: meta url: "https://pub.flutter-io.cn" source: hosted - version: "1.4.0" + version: "1.7.0" mime: dependency: transitive description: @@ -283,12 +290,12 @@ packages: source: hosted version: "4.2.0" platform: - dependency: transitive + dependency: "direct main" description: name: platform url: "https://pub.flutter-io.cn" source: hosted - version: "3.0.0" + version: "3.1.0" plugin_platform_interface: dependency: transitive description: @@ -440,7 +447,7 @@ packages: name: test_api url: "https://pub.flutter-io.cn" source: hosted - version: "0.4.1" + version: "0.4.8" toggle_rotate: dependency: "direct main" description: @@ -503,7 +510,7 @@ packages: name: vector_math url: "https://pub.flutter-io.cn" source: hosted - version: "2.1.0" + version: "2.1.1" win32: dependency: transitive description: @@ -526,5 +533,5 @@ packages: source: hosted version: "5.1.2" sdks: - dart: ">=2.13.0 <3.0.0" + dart: ">=2.14.0 <3.0.0" flutter: ">=2.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index 4af2a11..0fb7a73 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -34,6 +34,7 @@ dependencies: flutter_spinkit: ^5.0.0 # loading flutter_markdown: ^0.6.4 # markdown sqflite_common_ffi: ^2.0.0 + platform: ^3.1.0 image: ^3.1.0 dio: ^4.0.0 # 网络请求 path_provider_fde: