mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-07-29 07:13:44 +08:00
Merge pull request #90 from alibaba/dev/yisheng
refactor(many files): 页面部分的文件结构调整 1.views 文件夹里面分类,页面相关文件;2.公共组件全部放在components里;3.创建resources文件夹放置资源dart文件4.修改二级菜单文字大小
This commit is contained in:
ios/Runner.xcodeproj
lib
common
components
cate_card.dartcategory.dartfull_screen_code_dialog.dartlist_view_item.dartmarkdown.dartwidget_demo.dartwidget_item.dartwidget_item_container.dart
main.dartmodel
resources
routers
utils
example_code_parser.darthigh_light_code.dartnet_utils.dartprovider.dartsql.dartstyle.dartsyntax_highlighter.dartutil.dart
views
widgets
components
Bar
AppBar
BottomAppBar
ButtonBar
FlexibleSpaceBar
SliverAppBar
SnackBar
SnackBarAction
TabBar
Card/Card
Chip
Chip
ChipTheme
ChipThemeData
ChoiceChip
FilterChip
RawChip
inputChip
Dialog
Grid
LIst
Menu
CheckedPopupMenuItem
DropdownMenuItem
PopupMenuButton
PopupMenuDivider
PopupMenuEntry
PopupMenuItem
PopupMenuItemState
Navigation
Panel
Pick
Progress
CircularProgressIndicator
LinearProgressIndicator
RefreshProgressIndicator
Scaffold
Scroll
BoxScrollView
CustomScrollView
NestedScrollView
ScrollMetrics
ScrollPhysics
ScrollView
Scrollable
ScrollbarPainter
Tab/Tab
elements
Form
Button
DropdownButton
FlatButton
FloatingActionButton
IconButton
OutlineButton
PopupMenuButton
RaisedButton
RawMaterialButton
CheckBox
Input/TextField
Radio
Slider
Switch
Text
Frame
Align/Align
Box
ConstrainedBox
DecoratedBox
Fittedbox
LimitedBox
OverflowBox
RenderBox
RotatedBox
SizeBox
SizedOverflowBox
TextBox
UnconstrainedBox
Expanded/Expanded
Layout
Spacing
Stack
Table/Table
Media
Icon
Image
AssetImage
DecorationImage
DecorationImagePainter
ExactAssetImage
FadeInImage
FileImage
Image
MemoryImage
NetworkImage
RawImage
paintImage
themes
Cupertino
CupertinoApp
CupertinoButton
CupertinoColors
CupertinoIcons
CupertinoNavigationBar
CupertinoPageRoute
CupertinoPageScaffold
CupertinoPicker
CupertinoPopupSurface
CupertinoScrollbar
CupertinoSegmentedControl
CupertinoSlider
CupertinoSliverNavigationBar
CupertinoSwitch
CupertinoTabBar
CupertinoTabScaffold
CupertinoTabView
CupertinoTimerPicker
Material
MaterialAccentColor
MaterialApp
MaterialButton
MaterialColor
MaterialPageRoute
MergeableMaterialItem
@ -10,6 +10,7 @@
|
|||||||
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
|
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
|
||||||
333E5DAE7FC10AC69FEC26C0 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = DDA792F029EDD7A11295D192 /* libPods-Runner.a */; };
|
333E5DAE7FC10AC69FEC26C0 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = DDA792F029EDD7A11295D192 /* libPods-Runner.a */; };
|
||||||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
|
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
|
||||||
|
2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; };
|
||||||
3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
|
3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
|
||||||
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||||
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
|
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
|
||||||
@ -40,6 +41,7 @@
|
|||||||
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
|
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
|
||||||
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
|
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
|
||||||
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
|
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
|
||||||
|
2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; };
|
||||||
3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
|
3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
|
||||||
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
|
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
|
||||||
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
|
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
|
||||||
@ -90,6 +92,7 @@
|
|||||||
children = (
|
children = (
|
||||||
3B80C3931E831B6300D905FE /* App.framework */,
|
3B80C3931E831B6300D905FE /* App.framework */,
|
||||||
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
|
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
|
||||||
|
2D5378251FAA1A9400D5DBA9 /* flutter_assets */,
|
||||||
9740EEBA1CF902C7004384FC /* Flutter.framework */,
|
9740EEBA1CF902C7004384FC /* Flutter.framework */,
|
||||||
9740EEB21CF90195004384FC /* Debug.xcconfig */,
|
9740EEB21CF90195004384FC /* Debug.xcconfig */,
|
||||||
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
|
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
|
||||||
@ -206,6 +209,7 @@
|
|||||||
files = (
|
files = (
|
||||||
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
|
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
|
||||||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
|
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
|
||||||
|
2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */,
|
||||||
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
|
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
|
||||||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
|
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
|
||||||
);
|
);
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
//颜色配置
|
|
||||||
class AppColor{
|
|
||||||
static const int white = 0xFFFFFFFF;
|
|
||||||
static const int mainTextColor = 0xFF121917;
|
|
||||||
static const int subTextColor = 0xff959595;
|
|
||||||
}
|
|
||||||
|
|
||||||
//文本设置
|
|
||||||
class AppText{
|
|
||||||
static const middleSize = 16.0;
|
|
||||||
|
|
||||||
static const middleText = TextStyle(
|
|
||||||
color: Color(AppColor.mainTextColor),
|
|
||||||
fontSize: middleSize,
|
|
||||||
);
|
|
||||||
|
|
||||||
static const middleSubText = TextStyle(
|
|
||||||
color: Color(AppColor.subTextColor),
|
|
||||||
fontSize: middleSize,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
class WidgetDemoColor {
|
|
||||||
static const int fontColor = 0xFF607173;
|
|
||||||
static const int iconColor = 0xFF607173;
|
|
||||||
static const int borderColor = 0xFFEFEFEF;
|
|
||||||
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
import 'package:event_bus/event_bus.dart';
|
|
||||||
|
|
||||||
EventBus eventBus = new EventBus();
|
|
||||||
|
|
||||||
class MyEvent {
|
|
||||||
String text;
|
|
||||||
MyEvent(this.text);
|
|
||||||
}
|
|
@ -1,6 +1,6 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../model/cat.dart';
|
import '../model/cat.dart';
|
||||||
import '../common/widget_name_to_icon.dart';
|
import '../resources/widget_name_to_icon.dart';
|
||||||
import '../components/widget_item_container.dart';
|
import '../components/widget_item_container.dart';
|
||||||
|
|
||||||
class CateCard extends StatefulWidget {
|
class CateCard extends StatefulWidget {
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
* @Last Modified time: 2019-01-14 14:42:00
|
* @Last Modified time: 2019-01-14 14:42:00
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'example_code_parser.dart';
|
import 'package:flutter_go/utils/example_code_parser.dart';
|
||||||
import 'syntax_highlighter.dart';
|
import 'package:flutter_go/utils/syntax_highlighter.dart';
|
||||||
|
|
||||||
class FullScreenCodeDialog extends StatefulWidget {
|
class FullScreenCodeDialog extends StatefulWidget {
|
||||||
const FullScreenCodeDialog({this.filePath});
|
const FullScreenCodeDialog({this.filePath});
|
@ -1,5 +1,5 @@
|
|||||||
import 'package:flutter_markdown/flutter_markdown.dart' as md;
|
import 'package:flutter_markdown/flutter_markdown.dart' as md;
|
||||||
import '../common/high_light_code.dart';
|
import 'package:flutter_go/utils/high_light_code.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
/// 使用方法
|
/// 使用方法
|
||||||
|
@ -42,7 +42,7 @@ class _WidgetDemoState extends State<WidgetDemo> {
|
|||||||
String _router = '';
|
String _router = '';
|
||||||
|
|
||||||
void showInSnackBar(String value) {
|
void showInSnackBar(String value) {
|
||||||
Fluttertoast.instance.showToast(
|
Fluttertoast.showToast(
|
||||||
msg: value,
|
msg: value,
|
||||||
toastLength: Toast.LENGTH_SHORT,
|
toastLength: Toast.LENGTH_SHORT,
|
||||||
gravity: ToastGravity.CENTER,
|
gravity: ToastGravity.CENTER,
|
@ -2,8 +2,8 @@
|
|||||||
* @author 一凨
|
* @author 一凨
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../common/style.dart';
|
import 'package:flutter_go/utils/style.dart';
|
||||||
import '../common/widget_name_to_icon.dart';
|
import 'package:flutter_go/resources/widget_name_to_icon.dart';
|
||||||
|
|
||||||
String _widgetName;
|
String _widgetName;
|
||||||
|
|
||||||
@ -13,9 +13,15 @@ class WidgetItem extends StatelessWidget {
|
|||||||
final int index; //用于计算border
|
final int index; //用于计算border
|
||||||
final int totalCount;
|
final int totalCount;
|
||||||
final int rowLength;
|
final int rowLength;
|
||||||
|
final String textSize;
|
||||||
|
|
||||||
WidgetItem(
|
WidgetItem(
|
||||||
{this.title, this.onTap, this.index, this.totalCount, this.rowLength});
|
{this.title,
|
||||||
|
this.onTap,
|
||||||
|
this.index,
|
||||||
|
this.totalCount,
|
||||||
|
this.rowLength,
|
||||||
|
this.textSize});
|
||||||
|
|
||||||
Border _buildBorder(context) {
|
Border _buildBorder(context) {
|
||||||
Border _border;
|
Border _border;
|
||||||
@ -64,6 +70,9 @@ class WidgetItem extends StatelessWidget {
|
|||||||
Icons.crop,
|
Icons.crop,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
final textStyle = (textSize == 'middle')
|
||||||
|
? TextStyle(fontSize: 13.8, fontFamily: 'MediumItalic')
|
||||||
|
: TextStyle(fontSize: 16.0);
|
||||||
return InkWell(
|
return InkWell(
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
child: Container(
|
child: Container(
|
||||||
@ -80,7 +89,7 @@ class WidgetItem extends StatelessWidget {
|
|||||||
SizedBox(
|
SizedBox(
|
||||||
height: 8.0,
|
height: 8.0,
|
||||||
),
|
),
|
||||||
Text(_widgetName),
|
Text(_widgetName, style: textStyle),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -7,6 +7,7 @@ class WidgetItemContainer extends StatelessWidget {
|
|||||||
final int columnCount; //一行几个
|
final int columnCount; //一行几个
|
||||||
final List<dynamic> categories;
|
final List<dynamic> categories;
|
||||||
final bool isWidgetPoint;
|
final bool isWidgetPoint;
|
||||||
|
|
||||||
// 所有的可用demos;
|
// 所有的可用demos;
|
||||||
final List widgetDemosList = new WidgetDemoList().getDemos();
|
final List widgetDemosList = new WidgetDemoList().getDemos();
|
||||||
|
|
||||||
@ -50,6 +51,7 @@ class WidgetItemContainer extends StatelessWidget {
|
|||||||
index: addI,
|
index: addI,
|
||||||
totalCount: length,
|
totalCount: length,
|
||||||
rowLength: columnCount,
|
rowLength: columnCount,
|
||||||
|
textSize: isWidgetPoint ? 'middle' : 'small',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -3,7 +3,7 @@ import 'package:fluro/fluro.dart';
|
|||||||
import 'package:flutter/rendering.dart';
|
import 'package:flutter/rendering.dart';
|
||||||
import 'routers/routers.dart';
|
import 'routers/routers.dart';
|
||||||
import 'routers/application.dart';
|
import 'routers/application.dart';
|
||||||
import 'common/provider.dart';
|
import 'package:flutter_go/utils/provider.dart';
|
||||||
|
|
||||||
import 'views/welcome_page/index.dart';
|
import 'views/welcome_page/index.dart';
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import '../common/sql.dart';
|
import 'package:flutter_go/utils/sql.dart';
|
||||||
|
|
||||||
abstract class CatInterface{
|
abstract class CatInterface{
|
||||||
int get id;
|
int get id;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2019-01-08 17:37:42
|
* @Last Modified time: 2019-01-08 17:37:42
|
||||||
*/
|
*/
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import '../common/sql.dart';
|
import 'package:flutter_go/utils/sql.dart';
|
||||||
|
|
||||||
abstract class CollectionInterface {
|
abstract class CollectionInterface {
|
||||||
String get name;
|
String get name;
|
||||||
|
@ -1,68 +0,0 @@
|
|||||||
/**
|
|
||||||
* Created with Android Studio.
|
|
||||||
* User: 一晟
|
|
||||||
* Date: 2019/1/12
|
|
||||||
* Time: 下午9:19
|
|
||||||
* email: zhu.yan@alibaba-inc.com
|
|
||||||
*/
|
|
||||||
import 'dart:async';
|
|
||||||
import '../common/sql.dart';
|
|
||||||
|
|
||||||
abstract class CollectionInterface {
|
|
||||||
String get key;
|
|
||||||
String get values;
|
|
||||||
}
|
|
||||||
|
|
||||||
class CollectionGeneral implements CollectionInterface {
|
|
||||||
String key;
|
|
||||||
String values;
|
|
||||||
|
|
||||||
CollectionGeneral({this.key, this.values});
|
|
||||||
|
|
||||||
factory CollectionGeneral.fromJSON(Map json){
|
|
||||||
return CollectionGeneral(key: json['name'],values: json['values']);
|
|
||||||
}
|
|
||||||
|
|
||||||
Object toMap() {
|
|
||||||
return {'key': key, 'values': values};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class CollectionControlModel {
|
|
||||||
final String table = 'collectionGeneral';
|
|
||||||
Sql sql;
|
|
||||||
|
|
||||||
CollectionControlModel() {
|
|
||||||
sql = Sql.setTable(table);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 获取所有的收藏
|
|
||||||
|
|
||||||
// 插入新收藏
|
|
||||||
Future insert(CollectionGeneral collection) {
|
|
||||||
var result =
|
|
||||||
sql.insert({'key': collection.key, 'values': collection.values});
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 获取全部的收藏
|
|
||||||
Future<List<CollectionGeneral>> getAllCollection() async {
|
|
||||||
List list = await sql.getByCondition();
|
|
||||||
List<CollectionGeneral> resultList = [];
|
|
||||||
list.forEach((item){
|
|
||||||
resultList.add(CollectionGeneral.fromJSON(item));
|
|
||||||
});
|
|
||||||
return resultList;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 通过收藏名获取router
|
|
||||||
Future getRouterByName(String key) async {
|
|
||||||
List list = await sql.getByCondition(conditions: {'key': key});
|
|
||||||
return list;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 删除
|
|
||||||
Future deleteByName(String key) async{
|
|
||||||
return await sql.delete(key,'key');
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import '../common/sql.dart';
|
import 'package:flutter_go/utils/sql.dart';
|
||||||
import "package:flutter/material.dart";
|
import "package:flutter/material.dart";
|
||||||
|
|
||||||
abstract class WidgetInterface {
|
abstract class WidgetInterface {
|
||||||
|
@ -157,12 +157,12 @@ class WidgetName2Icon {
|
|||||||
"CupertinoPopupSurface":Icons.center_focus_weak,
|
"CupertinoPopupSurface":Icons.center_focus_weak,
|
||||||
"CupertinoScrollbar": Icons.fullscreen,
|
"CupertinoScrollbar": Icons.fullscreen,
|
||||||
"CupertinoSlider": Icons.switch_camera,
|
"CupertinoSlider": Icons.switch_camera,
|
||||||
"CupertinoSegmentedControl": Icons.radio_button_checked,
|
"CupertinoSegmentedControl": Icons.business_center,
|
||||||
"CupertinoSliverNavigationBar": Icons.subtitles,
|
"CupertinoSliverNavigationBar": Icons.subtitles,
|
||||||
"CupertinoSwitch": Icons.check_box,
|
"CupertinoSwitch": Icons.radio_button_checked,
|
||||||
"CupertinoTabBar": Icons.tab,
|
"CupertinoTabBar": Icons.tab,
|
||||||
"CupertinoTabScaffold": Icons.tab,
|
"CupertinoTabScaffold": Icons.crop_original,
|
||||||
"CupertinoTabView": Icons.table_chart,
|
"CupertinoTabView": Icons.tablet,
|
||||||
"CupertinoTimerPicker": Icons.timer
|
"CupertinoTimerPicker": Icons.timer
|
||||||
};
|
};
|
||||||
}
|
}
|
@ -1,10 +1,10 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:fluro/fluro.dart';
|
import 'package:fluro/fluro.dart';
|
||||||
import '../views/category.dart';
|
import 'package:flutter_go/components/category.dart';
|
||||||
import '../widgets/404.dart';
|
import '../widgets/404.dart';
|
||||||
import '../common/full_screen_code_dialog.dart';
|
import 'package:flutter_go/components/full_screen_code_dialog.dart';
|
||||||
import '../views/web_view_page.dart';
|
import 'package:flutter_go/views/web_page/web_view_page.dart';
|
||||||
import '../views/home.dart';
|
import 'package:flutter_go/views/first_page/home.dart';
|
||||||
|
|
||||||
// app的首页
|
// app的首页
|
||||||
var homeHandler = new Handler(
|
var homeHandler = new Handler(
|
||||||
|
@ -59,7 +59,6 @@ class Provider {
|
|||||||
//Get a location using getDatabasesPath
|
//Get a location using getDatabasesPath
|
||||||
String databasesPath = await getDatabasesPath();
|
String databasesPath = await getDatabasesPath();
|
||||||
String path = join(databasesPath, 'flutter.db');
|
String path = join(databasesPath, 'flutter.db');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
db = await openDatabase(path);
|
db = await openDatabase(path);
|
||||||
} catch (e) {
|
} catch (e) {
|
@ -1,22 +0,0 @@
|
|||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
class Detail extends StatelessWidget {
|
|
||||||
|
|
||||||
final String id ;
|
|
||||||
Detail(this.id) ;
|
|
||||||
|
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return new Scaffold(
|
|
||||||
appBar: new AppBar(
|
|
||||||
title: new Text('List Detail'),
|
|
||||||
),
|
|
||||||
body: new Center(
|
|
||||||
child: new Text('msg:'+ 'id='+id),
|
|
||||||
),
|
|
||||||
) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
@ -5,11 +5,11 @@
|
|||||||
* @Last Modified time: 2019-01-14 20:13:28
|
* @Last Modified time: 2019-01-14 20:13:28
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../model/collection.dart';
|
import 'package:flutter_go/model/collection.dart';
|
||||||
import '../routers/application.dart';
|
import 'package:flutter_go/routers/application.dart';
|
||||||
import '../routers/routers.dart';
|
import 'package:flutter_go/routers/routers.dart';
|
||||||
import '../event/event_bus.dart';
|
import 'package:flutter_go/event/event_bus.dart';
|
||||||
import '../event/event_model.dart';
|
import 'package:flutter_go/event/event_model.dart';
|
||||||
import 'package:event_bus/event_bus.dart';
|
import 'package:event_bus/event_bus.dart';
|
||||||
|
|
||||||
class CollectionPage extends StatefulWidget {
|
class CollectionPage extends StatefulWidget {
|
@ -1,22 +0,0 @@
|
|||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
class Detail extends StatelessWidget {
|
|
||||||
|
|
||||||
final String id ;
|
|
||||||
Detail(this.id) ;
|
|
||||||
|
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return new Scaffold(
|
|
||||||
appBar: new AppBar(
|
|
||||||
title: new Text('List Detail'),
|
|
||||||
),
|
|
||||||
body: new Center(
|
|
||||||
child: new Text('msg:'+ 'id='+id),
|
|
||||||
),
|
|
||||||
) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
@ -1,13 +1,13 @@
|
|||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
import 'package:flutter_go/common/list_view_item.dart';
|
import 'package:flutter_go/components/list_view_item.dart';
|
||||||
import 'package:flutter_go/components/list_refresh.dart' as listComp;
|
import 'package:flutter_go/components/list_refresh.dart' as listComp;
|
||||||
import 'package:flutter_go/components/pagination.dart';
|
import 'package:flutter_go/components/pagination.dart';
|
||||||
import 'package:flutter_go/components/first_page_item.dart';
|
import 'package:flutter_go/views/first_page/first_page_item.dart';
|
||||||
import 'package:flutter_go/components/disclaimer_msg.dart';
|
import 'package:flutter_go/components/disclaimer_msg.dart';
|
||||||
import 'package:shared_preferences/shared_preferences.dart';
|
import 'package:shared_preferences/shared_preferences.dart';
|
||||||
import '../common/net_utils.dart';
|
import 'package:flutter_go/utils/net_utils.dart';
|
||||||
|
|
||||||
GlobalKey<DisclaimerMsgState> key;
|
GlobalKey<DisclaimerMsgState> key;
|
||||||
|
|
@ -7,7 +7,7 @@
|
|||||||
* tartget: FirstPageItem
|
* tartget: FirstPageItem
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import '../common/Util.dart';
|
import 'package:flutter_go/utils/util.dart';
|
||||||
|
|
||||||
class FirstPageItem {
|
class FirstPageItem {
|
||||||
bool hot;
|
bool hot;
|
@ -12,16 +12,16 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/rendering.dart';
|
import 'package:flutter/rendering.dart';
|
||||||
|
|
||||||
import 'first_page.dart';
|
import 'package:flutter_go/views/first_page/first_page.dart';
|
||||||
import 'widget_page.dart';
|
import 'package:flutter_go/views/widget_page/widget_page.dart';
|
||||||
import 'package:flutter_go/views/welcome_page/fourth_page.dart';
|
import 'package:flutter_go/views/welcome_page/fourth_page.dart';
|
||||||
import 'collection_page.dart';
|
import 'package:flutter_go/views/collection_page/collection_page.dart';
|
||||||
import '../routers/application.dart';
|
import 'package:flutter_go/routers/application.dart';
|
||||||
import '../common/provider.dart';
|
import 'package:flutter_go/utils//provider.dart';
|
||||||
import '../model/widget.dart';
|
import 'package:flutter_go/model/widget.dart';
|
||||||
import '../widgets/index.dart';
|
import 'package:flutter_go/widgets/index.dart';
|
||||||
import 'package:flutter_go/components/search_input.dart';
|
import 'package:flutter_go/components/search_input.dart';
|
||||||
import '../common/widget_name_to_icon.dart';
|
import 'package:flutter_go/resources/widget_name_to_icon.dart';
|
||||||
|
|
||||||
const int ThemeColor = 0xFFC91B3A;
|
const int ThemeColor = 0xFFC91B3A;
|
||||||
|
|
@ -3,7 +3,7 @@ import 'dart:async';
|
|||||||
import 'dart:ui';
|
import 'dart:ui';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import './pager_indicator.dart';
|
import 'package:flutter_go/views/fourth_page/pager_indicator.dart';
|
||||||
|
|
||||||
class PageDragger extends StatefulWidget {
|
class PageDragger extends StatefulWidget {
|
||||||
|
|
2
lib/components/fourth_page_feature/pager_indicator.dart → lib/views/fourth_page/pager_indicator.dart
2
lib/components/fourth_page_feature/pager_indicator.dart → lib/views/fourth_page/pager_indicator.dart
@ -1,7 +1,7 @@
|
|||||||
import 'dart:ui';
|
import 'dart:ui';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import './pages.dart';
|
import 'package:flutter_go/views/fourth_page/pages.dart';
|
||||||
|
|
||||||
class PagerIndicator extends StatelessWidget {
|
class PagerIndicator extends StatelessWidget {
|
||||||
|
|
@ -6,9 +6,9 @@
|
|||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_webview_plugin/flutter_webview_plugin.dart';
|
import 'package:flutter_webview_plugin/flutter_webview_plugin.dart';
|
||||||
import '../model/collection.dart';
|
import 'package:flutter_go/model/collection.dart';
|
||||||
import '../event/event_bus.dart';
|
import 'package:flutter_go/event/event_bus.dart';
|
||||||
import '../event/event_model.dart';
|
import 'package:flutter_go/event/event_model.dart';
|
||||||
import 'package:fluttertoast/fluttertoast.dart';
|
import 'package:fluttertoast/fluttertoast.dart';
|
||||||
import 'dart:core';
|
import 'dart:core';
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ class _WebViewPageState extends State<WebViewPage> {
|
|||||||
CollectionControlModel _collectionControl = new CollectionControlModel();
|
CollectionControlModel _collectionControl = new CollectionControlModel();
|
||||||
|
|
||||||
void showInSnackBar(String value) {
|
void showInSnackBar(String value) {
|
||||||
Fluttertoast.instance.showToast(
|
Fluttertoast.showToast(
|
||||||
msg: value,
|
msg: value,
|
||||||
toastLength: Toast.LENGTH_SHORT,
|
toastLength: Toast.LENGTH_SHORT,
|
||||||
gravity: ToastGravity.CENTER,
|
gravity: ToastGravity.CENTER,
|
@ -1,10 +1,10 @@
|
|||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_go/components/fourth_page_feature/page_dragger.dart';
|
import 'package:flutter_go/views/fourth_page/page_dragger.dart';
|
||||||
import 'package:flutter_go/components/fourth_page_feature/page_reveal.dart';
|
import 'package:flutter_go/views/fourth_page/page_reveal.dart';
|
||||||
import 'package:flutter_go/components/fourth_page_feature/pager_indicator.dart';
|
import 'package:flutter_go/views/fourth_page/pager_indicator.dart';
|
||||||
import 'package:flutter_go/components/fourth_page_feature/pages.dart';
|
import 'package:flutter_go/views/fourth_page/pages.dart';
|
||||||
|
|
||||||
class FourthPage extends StatefulWidget {
|
class FourthPage extends StatefulWidget {
|
||||||
@override
|
@override
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_go/components/cate_card.dart';
|
import 'package:flutter_go/components/cate_card.dart';
|
||||||
import '../model/cat.dart';
|
import 'package:flutter_go/model/cat.dart';
|
||||||
|
|
||||||
class WidgetPage extends StatefulWidget {
|
class WidgetPage extends StatefulWidget {
|
||||||
final db;
|
final db;
|
@ -6,7 +6,7 @@
|
|||||||
* email: zhu.yan@alibaba-inc.com
|
* email: zhu.yan@alibaba-inc.com
|
||||||
* tartget: AppBar 的示例
|
* tartget: AppBar 的示例
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: zhu.yan@alibaba-inc.com
|
* email: zhu.yan@alibaba-inc.com
|
||||||
* tartget: BottomAppBar 的示例
|
* tartget: BottomAppBar 的示例
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: zhu.yan@alibaba-inc.com
|
* email: zhu.yan@alibaba-inc.com
|
||||||
* tartget: ButtonBar 的示例
|
* tartget: ButtonBar 的示例
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: zhu.yan@alibaba-inc.com
|
* email: zhu.yan@alibaba-inc.com
|
||||||
* tartget: FlexibleSpaceBar 的示例
|
* tartget: FlexibleSpaceBar 的示例
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: zhu.yan@alibaba-inc.com
|
* email: zhu.yan@alibaba-inc.com
|
||||||
* tartget: SliverAppBar 的示例
|
* tartget: SliverAppBar 的示例
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: zhu.yan@alibaba-inc.com
|
* email: zhu.yan@alibaba-inc.com
|
||||||
* tartget: SnackBar 的示例
|
* tartget: SnackBar 的示例
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: sanfan.hx@alibaba-inc.com
|
* email: sanfan.hx@alibaba-inc.com
|
||||||
* tartget: SnackBarAction 的示例
|
* tartget: SnackBarAction 的示例
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import './demo.dart' as SnackBarDemo;
|
import './demo.dart' as SnackBarDemo;
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: sanfan.hx@alibaba-inc.com
|
* email: sanfan.hx@alibaba-inc.com
|
||||||
* tartget: SnackBarAction 的示例
|
* tartget: SnackBarAction 的示例
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
import './demo.dart';
|
import './demo.dart';
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: zhu.yan@alibaba-inc.com
|
* email: zhu.yan@alibaba-inc.com
|
||||||
* tartget: Card 的示例
|
* tartget: Card 的示例
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-18 15:13:23
|
* @Last Modified time: 2018-12-18 15:13:23
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-18 15:14:03
|
* @Last Modified time: 2018-12-18 15:14:03
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-18 17:38:56
|
* @Last Modified time: 2018-12-18 17:38:56
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-21 10:25:22
|
* @Last Modified time: 2018-12-21 10:25:22
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: sanfan.hx@alibaba-inc.com
|
* email: sanfan.hx@alibaba-inc.com
|
||||||
* tartget: xxx
|
* tartget: xxx
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: sanfan.hx@alibaba-inc.com
|
* email: sanfan.hx@alibaba-inc.com
|
||||||
* tartget: xxx
|
* tartget: xxx
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: sanfan.hx@alibaba-inc.com
|
* email: sanfan.hx@alibaba-inc.com
|
||||||
* tartget: xxx
|
* tartget: xxx
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: sanfan.hx@alibaba-inc.com
|
* email: sanfan.hx@alibaba-inc.com
|
||||||
* tartget: xxx
|
* tartget: xxx
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: sanfan.hx@alibaba-inc.com
|
* email: sanfan.hx@alibaba-inc.com
|
||||||
* tartget: xxx
|
* tartget: xxx
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: sanfan.hx@alibaba-inc.com
|
* email: sanfan.hx@alibaba-inc.com
|
||||||
* tartget: xxx
|
* tartget: xxx
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: sanfan.hx@alibaba-inc.com
|
* email: sanfan.hx@alibaba-inc.com
|
||||||
* tartget: xxx
|
* tartget: xxx
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: sanfan.hx@alibaba-inc.com
|
* email: sanfan.hx@alibaba-inc.com
|
||||||
* tartget: xxx
|
* tartget: xxx
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: sanfan.hx@alibaba-inc.com
|
* email: sanfan.hx@alibaba-inc.com
|
||||||
* tartget: xxx
|
* tartget: xxx
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: zhu.yan@alibaba-inc.com
|
* email: zhu.yan@alibaba-inc.com
|
||||||
* tartget: AnimatedList 的示例
|
* tartget: AnimatedList 的示例
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
import 'package:flutter_markdown/flutter_markdown.dart';
|
import 'package:flutter_markdown/flutter_markdown.dart';
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: zhu.yan@alibaba-inc.com
|
* email: zhu.yan@alibaba-inc.com
|
||||||
* tartget: ListBody 的示例
|
* tartget: ListBody 的示例
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: zhu.yan@alibaba-inc.com
|
* email: zhu.yan@alibaba-inc.com
|
||||||
* tartget: ListView 的示例
|
* tartget: ListView 的示例
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
import 'package:flutter_markdown/flutter_markdown.dart';
|
import 'package:flutter_markdown/flutter_markdown.dart';
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-27 15:37:04
|
* @Last Modified time: 2018-12-27 15:37:04
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:fluttertoast/fluttertoast.dart';
|
//import 'package:fluttertoast/fluttertoast.dart';
|
||||||
|
|
||||||
class CheckedPopupMenuItemDemo extends StatefulWidget {
|
class CheckedPopupMenuItemDemo extends StatefulWidget {
|
||||||
_CheckedPopupMenuItemDemoState createState() =>
|
_CheckedPopupMenuItemDemoState createState() =>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-22 21:26:54
|
* @Last Modified time: 2018-12-22 21:26:54
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import './demo.dart';
|
import './demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-27 14:51:44
|
* @Last Modified time: 2018-12-27 14:51:44
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import './demo.dart';
|
import './demo.dart';
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-27 15:44:31
|
* @Last Modified time: 2018-12-27 15:44:31
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import './demo.dart';
|
import './demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-27 15:55:22
|
* @Last Modified time: 2018-12-27 15:55:22
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import './demo.dart';
|
import './demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-27 16:06:20
|
* @Last Modified time: 2018-12-27 16:06:20
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import '../PopupMenuDivider/demo.dart';
|
import '../PopupMenuDivider/demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-29 15:07:16
|
* @Last Modified time: 2018-12-29 15:07:16
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import '../PopupMenuDivider/demo.dart';
|
import '../PopupMenuDivider/demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-29 16:22:06
|
* @Last Modified time: 2018-12-29 16:22:06
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import '../PopupMenuDivider/demo.dart';
|
import '../PopupMenuDivider/demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
|
|
||||||
import 'package:flutter_markdown/flutter_markdown.dart';
|
import 'package:flutter_markdown/flutter_markdown.dart';
|
||||||
import './demo.dart' as BottomNavigationBarDemo;
|
import './demo.dart' as BottomNavigationBarDemo;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: zhu.yan@alibaba-inc.com
|
* email: zhu.yan@alibaba-inc.com
|
||||||
* tartget: BottomNavigationBarItem 的示例
|
* tartget: BottomNavigationBarItem 的示例
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
// import 'demo.dart';
|
// import 'demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-17 15:50:02
|
* @Last Modified time: 2018-12-17 15:50:02
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-17 17:06:34
|
* @Last Modified time: 2018-12-17 17:06:34
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-17 16:00:07
|
* @Last Modified time: 2018-12-17 16:00:07
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-17 16:00:07
|
* @Last Modified time: 2018-12-17 16:00:07
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-17 16:00:07
|
* @Last Modified time: 2018-12-17 16:00:07
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-17 16:00:07
|
* @Last Modified time: 2018-12-17 16:00:07
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-17 16:00:07
|
* @Last Modified time: 2018-12-17 16:00:07
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
### **简介**
|
### **简介**
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: sanfan.hx@alibaba-inc.com
|
* email: sanfan.hx@alibaba-inc.com
|
||||||
* tartget: xxx
|
* tartget: xxx
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* email: sanfan.hx@alibaba-inc.com
|
* email: sanfan.hx@alibaba-inc.com
|
||||||
* tartget: xxx
|
* tartget: xxx
|
||||||
*/
|
*/
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'demo.dart';
|
import 'demo.dart';
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-17 13:34:46
|
* @Last Modified time: 2018-12-17 13:34:46
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import './demo.dart';
|
import './demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-20 14:08:29
|
* @Last Modified time: 2018-12-20 14:08:29
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import './demo.dart';
|
import './demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import './demo.dart';
|
import './demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-15 20:33:47
|
* @Last Modified time: 2018-12-15 20:33:47
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import './demo.dart';
|
import './demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-15 21:26:11
|
* @Last Modified time: 2018-12-15 21:26:11
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import './demo.dart';
|
import './demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-14 20:36:57
|
* @Last Modified time: 2018-12-14 20:36:57
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import './demo.dart';
|
import './demo.dart';
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-15 17:05:20
|
* @Last Modified time: 2018-12-15 17:05:20
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import './demo.dart';
|
import './demo.dart';
|
||||||
|
|
||||||
const String contentText0 = '''
|
const String contentText0 = '''
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-15 19:38:18
|
* @Last Modified time: 2018-12-15 19:38:18
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import './demo.dart';
|
import './demo.dart';
|
||||||
|
|
||||||
const String contentText0 = '''
|
const String contentText0 = '''
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @Last Modified time: 2018-12-22 20:49:56
|
* @Last Modified time: 2018-12-22 20:49:56
|
||||||
*/
|
*/
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
import './demo.dart';
|
import './demo.dart';
|
||||||
|
|
||||||
const String content0 = '''
|
const String content0 = '''
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* target: DropdownButton 的示例
|
* target: DropdownButton 的示例
|
||||||
* 对应文档地址:https://docs.flutter.io/flutter/material/DropdownButton-class.html
|
* 对应文档地址:https://docs.flutter.io/flutter/material/DropdownButton-class.html
|
||||||
*/
|
*/
|
||||||
import '../../../../../common/widget_demo.dart';
|
import 'package:flutter_go/components/widget_demo.dart';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user