diff --git a/README.md b/README.md index 2ccf7c4..f6a4f21 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,10 @@ +#### Flutter Unit 周边 +- 🔥 [《Flutter之旅》源码 ](https://github.com/toly1994328/FlutterUnit/files/5144713/FlutterJourney.Source.zip) +- 🔥 [Flutter环境配置](https://github.com/toly1994328/FlutterUnit/issues/22) +- 🔥 [Flutter实用插件集录 ](https://github.com/toly1994328/FlutterUnit/issues/41) +- 🔥 [Flutter要点集录 ](https://github.com/toly1994328/FlutterUnit/labels/point) + [![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) @@ -19,14 +25,6 @@ --- -#### Flutter Unit 周边 - -- 🔥 [Flutter实用插件集录 ](https://github.com/toly1994328/FlutterUnit/issues/41) -- 🔥 [Flutter要点集录 ](https://github.com/toly1994328/FlutterUnit/labels/point) -- 🔥 [Flutter Unit 更新记录 ](http://king.toly1994.com/FlutterUnit_update.html) - ---- - > 当前Flutter 版本 ``` diff --git a/lib/views/pages/home/home_page.dart b/lib/views/pages/home/home_page.dart index 32e9b31..2b10361 100644 --- a/lib/views/pages/home/home_page.dart +++ b/lib/views/pages/home/home_page.dart @@ -93,8 +93,7 @@ class _HomePageState extends State with AutomaticKeepAliveClientMixin{ _switchTab(int index, Color color) { if (_ctrl.hasClients) _ctrl.jumpTo(0); - BlocProvider.of(context) - .add(EventTabTap(Convert.toFamily(index))); + BlocProvider.of(context).add(EventTabTap(Convert.toFamily(index))); } _toDetailPage(WidgetModel model) async { diff --git a/lib/views/widgets/StatefulWidget/zz_no/Scrollable.dart b/lib/views/widgets/StatefulWidget/zz_no/Scrollable.dart deleted file mode 100644 index 3309479..0000000 --- a/lib/views/widgets/StatefulWidget/zz_no/Scrollable.dart +++ /dev/null @@ -1,58 +0,0 @@ -//import 'package:flutter/material.dart'; -// -///// create by 张风捷特烈 on 2020-03-28 -///// contact me by email 1981462002@qq.com -///// 说明: -// -//class CustomScrollable extends StatelessWidget { -// final data = [ -// Colors.blue[50], -// Colors.blue[100], -// Colors.blue[200], -// Colors.blue[300], -// Colors.blue[400], -// Colors.blue[500], -// Colors.blue[600], -// Colors.blue[700], -// Colors.blue[800], -// Colors.blue[900], -// ]; -// -// @override -// Widget build(BuildContext context) { -// return Container( -// height: 200, -// child: Scrollable( -// viewportBuilder: (ctx, p) => Viewport(offset: p, -// slivers: [ -// -// ], -// ), -// ), -// ); -// } -// -// Column buildColumn() { -// return Column( -// children: data -// .map((color) => Container( -// alignment: Alignment.center, -// height: 50, -// color: color, -// child: Text( -// colorString(color), -// style: TextStyle(color: Colors.white, shadows: [ -// Shadow( -// color: Colors.black, -// offset: Offset(.5, .5), -// blurRadius: 2) -// ]), -// ), -// )) -// .toList(), -// ); -// } -// -// String colorString(Color color) => -// "#${color.value.toRadixString(16).padLeft(8, '0').toUpperCase()}"; -//}