mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-05-22 15:26:30 +08:00
fix:code url
This commit is contained in:
BIN
assets/app.db
BIN
assets/app.db
Binary file not shown.
@ -4,7 +4,7 @@ class Application {
|
||||
static Router router;
|
||||
static TabController controller;
|
||||
static Map<String, String> github = {
|
||||
'widgetsURL':'https://github.com/alibaba-paimai-frontend/flutter-common-widgets-app/tree/develop/lib/widgets/',
|
||||
'widgetsURL':'https://github.com/alibaba/flutter-go/blob/develop/lib/widgets/',
|
||||
//'develop':'https://github.com/alibaba-paimai-frontend/flutter-common-widgets-app/tree/develop/lib/widgets/',
|
||||
//'master':'https://github.com/alibaba-paimai-frontend/flutter-common-widgets-app/tree/master/lib/widgets/'
|
||||
};
|
||||
|
@ -38,7 +38,7 @@ class _DemoState extends State<Demo> {
|
||||
Widget build(BuildContext context) {
|
||||
return WidgetDemo(
|
||||
title: 'BottomAppBar',
|
||||
codeUrl: 'componentss/Bar/BottomAppBar/demo.dart',
|
||||
codeUrl: 'components/Bar/BottomAppBar/demo.dart',
|
||||
contentList: [allDomes(context, this)],
|
||||
docUrl: 'https://docs.flutter.io/flutter/material/BottomAppBar-class.html',
|
||||
);
|
||||
|
@ -40,7 +40,7 @@ class _DemoState extends State<Demo> {
|
||||
Widget build(BuildContext context) {
|
||||
return WidgetDemo(
|
||||
title: 'SnackBar',
|
||||
codeUrl: 'componentss/Bar/SnackBar/demo.dart',
|
||||
codeUrl: 'components/Bar/SnackBar/demo.dart',
|
||||
contentList: [allDomes(context, this)],
|
||||
docUrl: 'https://docs.flutter.io/flutter/material/SnackBar-class.html',
|
||||
);
|
||||
|
@ -10,11 +10,8 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
|
||||
class AlertDialogDemo extends StatefulWidget {
|
||||
_Demo createState() => _Demo();
|
||||
}
|
||||
|
||||
class _Demo extends State<AlertDialogDemo> {
|
||||
class AlertDialogDemo extends StatelessWidget{
|
||||
// _Demo createState() => _Demo();
|
||||
|
||||
void showAlertDialog(BuildContext context) {
|
||||
showDialog<void>(
|
||||
@ -141,3 +138,8 @@ class _Demo extends State<AlertDialogDemo> {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// class _Demo extends State<AlertDialogDemo> {
|
||||
|
||||
|
||||
// }
|
||||
|
@ -40,7 +40,7 @@ class _DemoState extends State<Demo> {
|
||||
Widget build(BuildContext context) {
|
||||
return WidgetDemo(
|
||||
title: 'SliverGrid',
|
||||
codeUrl: 'components/Grid/GridPaper/demo.dart',
|
||||
codeUrl: 'components/Grid/SliverGrid/demo.dart',
|
||||
contentList: [
|
||||
_Text0,
|
||||
SliverGridDemo(),
|
||||
|
@ -67,7 +67,7 @@ class _DemoState extends State<Demo> {
|
||||
Widget build(BuildContext context) {
|
||||
return WidgetDemo(
|
||||
title: 'ListView',
|
||||
codeUrl: '/componentss/List/ListView/demo.dart',
|
||||
codeUrl: 'components/List/ListView/demo.dart',
|
||||
contentList: [allCheckboxs(context, this)],
|
||||
docUrl: 'https://docs.flutter.io/flutter/widgets/ListView-class.html',
|
||||
);
|
||||
|
@ -34,7 +34,7 @@ class _DemoState extends State<Demo> {
|
||||
PopupMenuDividerDemo()
|
||||
],
|
||||
docUrl: 'https://docs.flutter.io/flutter/material/PopupMenuEntry-class.html',
|
||||
codeUrl: 'components/Menu/PopupMenuEntry/demo.dart',
|
||||
codeUrl: 'components/Menu/PopupMenuDivider/demo.dart',
|
||||
title: 'PopupMenuEntry',
|
||||
);
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ class _DemoState extends State<Demo> {
|
||||
PopupMenuDividerDemo()
|
||||
],
|
||||
docUrl: "https://docs.flutter.io/flutter/material/PopupMenuItem-class.html",
|
||||
codeUrl: 'components/Menu/PopupMenuEntry/demo.dart',
|
||||
codeUrl: 'components/Menu/PopupMenuDivider/demo.dart',
|
||||
title: 'PopupMenuItem',
|
||||
);
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ class _DemoState extends State<Demo> {
|
||||
content1,
|
||||
CircularDemo(),
|
||||
],
|
||||
codeUrl: '/components/Progress/CircularProgressIndicator/demo.dart',
|
||||
codeUrl: 'components/Progress/CircularProgressIndicator/demo.dart',
|
||||
docUrl:
|
||||
'https://docs.flutter.io/flutter/material/LinearProgressIndicator-class.html',
|
||||
title: 'CircularProgressIndicator');
|
||||
|
@ -38,7 +38,7 @@ class _DemoState extends State<Demo> {
|
||||
content1,
|
||||
LinearProgressIndicatorDemo(),
|
||||
],
|
||||
codeUrl: '/components/Progress/LinearProgressIndicator/demo.dart',
|
||||
codeUrl: 'components/Progress/LinearProgressIndicator/demo.dart',
|
||||
docUrl:
|
||||
'https://docs.flutter.io/flutter/material/LinearProgressIndicator-class.html',
|
||||
title: 'LinearProgressIndicator');
|
||||
|
@ -35,7 +35,7 @@ class _DemoState extends State<Demo> {
|
||||
content1,
|
||||
// LinearProgressIndicatorDemo(),
|
||||
],
|
||||
codeUrl: '/components/Progress/RefreshProgressIndicator/demo.dart',
|
||||
codeUrl: 'components/Progress/RefreshProgressIndicator/demo.dart',
|
||||
docUrl:'https://docs.flutter.io/flutter/material/RefreshProgressIndicator-class.html',
|
||||
title: 'RefreshProgressIndicator');
|
||||
}
|
||||
|
@ -83,7 +83,7 @@ class _Demo extends State<Demo> {
|
||||
Widget build(BuildContext context) {
|
||||
return WidgetDemo(
|
||||
title: 'Switch',
|
||||
codeUrl: '',
|
||||
codeUrl: 'elements/Form/Switch/Switch/demo.dart',
|
||||
contentList: [
|
||||
contentA,
|
||||
SwitchDemo(),
|
||||
|
@ -38,7 +38,7 @@ class _Demo extends State<Demo> {
|
||||
return WidgetDemo(
|
||||
title: "Text",
|
||||
docUrl: 'flutter/widgets/Text-class.html',
|
||||
codeUrl: 'elements/Form/Text/Text/index.dart',
|
||||
codeUrl: 'elements/Form/Text/Text/demo.dart',
|
||||
contentList: [
|
||||
intro,
|
||||
TextDemo(),
|
||||
|
@ -38,7 +38,7 @@ class _DemoState extends State<Demo> {
|
||||
contentText1,
|
||||
DecorationImageDemo(),
|
||||
],
|
||||
codeUrl: 'elements/Media/Image/DecorationImage/index.dart?1542705856254',
|
||||
codeUrl: 'elements/Media/Image/DecorationImage/decorationImage_demo.dart',
|
||||
docUrl:
|
||||
'https://docs.flutter.io/flutter/painting/DecorationImage-class.html',
|
||||
title: 'DecorationImage',
|
||||
|
@ -40,7 +40,7 @@ class _DemoState extends State<Demo> {
|
||||
// desc: 'MemoryImage 使用介绍',
|
||||
docUrl: 'https://docs.flutter.io/flutter/painting/MemoryImage-class.html',
|
||||
codeUrl:
|
||||
'elements/Media/Image/MemoryImage/index.dart?1542777213280',
|
||||
'elements/Media/Image/MemoryImage/index.dart',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ class _DemoState extends State<Demo> {
|
||||
contentText1,
|
||||
NetworkImageDemo(),
|
||||
],
|
||||
codeUrl: '',
|
||||
codeUrl: 'elements/Media/Image/NetworkImage/network_image_demo.dart',
|
||||
docUrl: 'https://docs.flutter.io/flutter/painting/NetworkImage-class.html',
|
||||
title: 'NetworkImage',
|
||||
);
|
||||
|
@ -47,7 +47,7 @@ class _DemoState extends State<Demo> {
|
||||
],
|
||||
title: 'CupertinoApp',
|
||||
docUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoApp-class.html',
|
||||
codeUrl: '/themes/Cupertino/CupertinoApp/demo.dart',
|
||||
codeUrl: 'themes/Cupertino/CupertinoApp/demo.dart',
|
||||
);
|
||||
}
|
||||
}
|
@ -39,7 +39,7 @@ class _DemoState extends State<Demo> {
|
||||
],
|
||||
title: 'CupertinoButton',
|
||||
docUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoButton-class.html',
|
||||
codeUrl: '/themes/Cupertino/CupertinoButton/demo.dart',
|
||||
codeUrl: 'themes/Cupertino/CupertinoButton/demo.dart',
|
||||
);
|
||||
}
|
||||
}
|
@ -36,7 +36,7 @@ class _DemoState extends State<Demo> {
|
||||
],
|
||||
title: 'CupertinoColors',
|
||||
docUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoColors-class.html',
|
||||
codeUrl: '/themes/Cupertino/CupertinoColor/demo.dart',
|
||||
codeUrl: 'themes/Cupertino/CupertinoColor/demo.dart',
|
||||
);
|
||||
}
|
||||
}
|
@ -38,7 +38,7 @@ class _DemoState extends State<Demo> {
|
||||
],
|
||||
title: 'CupertinoIcons',
|
||||
docUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoIcons-class.html',
|
||||
codeUrl: '/themes/Cupertino/CupertinoColor/demo.dart',
|
||||
codeUrl: 'themes/Cupertino/CupertinoColor/demo.dart',
|
||||
);
|
||||
}
|
||||
}
|
@ -48,7 +48,7 @@ class _DemoState extends State<Demo> {
|
||||
],
|
||||
title: 'CupertinoNavigationBar',
|
||||
docUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoNavigationBar-class.html',
|
||||
codeUrl: '/themes/Cupertino/CupertinoNavigationBar/demo.dart',
|
||||
codeUrl: 'themes/Cupertino/CupertinoNavigationBar/demo.dart',
|
||||
);
|
||||
}
|
||||
}
|
@ -41,7 +41,7 @@ class _DemoState extends State<Demo> {
|
||||
],
|
||||
title: 'CupertinoPageRoute',
|
||||
docUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoPageRoute-class.html',
|
||||
codeUrl: '/themes/Cupertino/CupertinoPageRoute/demo.dart',
|
||||
codeUrl: 'themes/Cupertino/CupertinoPageRoute/demo.dart',
|
||||
);
|
||||
}
|
||||
}
|
@ -39,7 +39,7 @@ class _DemoState extends State<Demo> {
|
||||
],
|
||||
title: 'CupertinoPageScaffold',
|
||||
docUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoPageScaffold-class.html',
|
||||
codeUrl: '/themes/Cupertino/CupertinoPageScaffold/demo.dart',
|
||||
codeUrl: 'themes/Cupertino/CupertinoPageScaffold/demo.dart',
|
||||
);
|
||||
}
|
||||
}
|
@ -39,7 +39,7 @@ class _DemoState extends State<Demo> {
|
||||
],
|
||||
title: 'CupertinoPicker',
|
||||
docUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoPicker-class.html',
|
||||
codeUrl: '/themes/Cupertino/CupertinoPicker/demo.dart',
|
||||
codeUrl: 'themes/Cupertino/CupertinoPicker/demo.dart',
|
||||
);
|
||||
}
|
||||
}
|
@ -38,7 +38,7 @@ class _DemoState extends State<Demo> {
|
||||
],
|
||||
title: 'CupertinoPopupSurface',
|
||||
docUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoPopupSurface-class.html',
|
||||
codeUrl: '/themes/Cupertino/CupertinoPopupSurface/demo.dart',
|
||||
codeUrl: 'themes/Cupertino/CupertinoPopupSurface/demo.dart',
|
||||
);
|
||||
}
|
||||
}
|
@ -27,7 +27,7 @@ class _DemoState extends State<Demo> {
|
||||
Widget build(BuildContext context) {
|
||||
return WidgetDemo(
|
||||
title: 'CupertinoScrollbar',
|
||||
codeUrl: '/themes/Cupertino/CupertinoScrollbar/demo.dart',
|
||||
codeUrl: 'themes/Cupertino/CupertinoScrollbar/demo.dart',
|
||||
docUrl: 'https://docs.flutter.io/flutter/material/MaterialAccentColor-class.html',
|
||||
contentList: [
|
||||
Text0,
|
||||
|
@ -32,7 +32,7 @@ class _DemoState extends State<Demo> {
|
||||
Widget build(BuildContext context) {
|
||||
return WidgetDemo(
|
||||
title: 'CupertinoSegmentedControl',
|
||||
codeUrl: '/themes/Cupertino/CupertinoSegmentedControl/demo.dart',
|
||||
codeUrl: '/hemes/Cupertino/CupertinoSegmentedControl/demo.dart',
|
||||
docUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoSegmentedControl-class.html',
|
||||
contentList: [
|
||||
Text0,
|
||||
|
@ -27,7 +27,7 @@ class _DemoState extends State<Demo> {
|
||||
Widget build(BuildContext context) {
|
||||
return WidgetDemo(
|
||||
title: 'CupertinoSlider',
|
||||
codeUrl: '/themes/Cupertino/CupertinoSlider/demo.dart',
|
||||
codeUrl: 'themes/Cupertino/CupertinoSlider/demo.dart',
|
||||
docUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoSlider-class.html',
|
||||
contentList: [
|
||||
Text0,
|
||||
|
@ -24,7 +24,7 @@ class _DemoState extends State<Demo> {
|
||||
Widget build(BuildContext context) {
|
||||
return WidgetDemo(
|
||||
title: 'CupertinoSlider',
|
||||
codeUrl: '/themes/Cupertino/CupertinoSliverNavigationBar/demo.dart',
|
||||
codeUrl: 'themes/Cupertino/CupertinoSliverNavigationBar/demo.dart',
|
||||
docUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoSliverNavigationBar-class.html',
|
||||
contentList: [
|
||||
Text0,
|
||||
|
@ -25,7 +25,7 @@ class _DemoState extends State<Demo> {
|
||||
Widget build(BuildContext context) {
|
||||
return WidgetDemo(
|
||||
title: 'CupertinoSlider',
|
||||
codeUrl: '/themes/Cupertino/CupertinoSwitch/demo.dart',
|
||||
codeUrl: 'themes/Cupertino/CupertinoSwitch/demo.dart',
|
||||
docUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoSwitch-class.html',
|
||||
contentList: [
|
||||
Text0,
|
||||
|
@ -33,7 +33,7 @@ class _DemoState extends State<Demo> {
|
||||
Widget build(BuildContext context) {
|
||||
return WidgetDemo(
|
||||
title: 'CupertinoTabBar',
|
||||
codeUrl: '/themes/Cupertino/CupertinoTabBar/demo.dart',
|
||||
codeUrl: 'themes/Cupertino/CupertinoTabBar/demo.dart',
|
||||
docUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoTabBar-class.html',
|
||||
contentList: [
|
||||
Text0,
|
||||
|
@ -39,7 +39,7 @@ class _DemoState extends State<Demo> {
|
||||
Widget build(BuildContext context) {
|
||||
return WidgetDemo(
|
||||
title: 'CupertinoTabScaffold',
|
||||
codeUrl: '/themes/Cupertino/CupertinoTabScaffold/demo.dart',
|
||||
codeUrl: 'themes/Cupertino/CupertinoTabScaffold/demo.dart',
|
||||
docUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoTabScaffold-class.html',
|
||||
contentList: [
|
||||
Text0,
|
||||
|
@ -42,7 +42,7 @@ class _DemoState extends State<Demo> {
|
||||
Widget build(BuildContext context) {
|
||||
return WidgetDemo(
|
||||
title: 'CupertinoTabView',
|
||||
codeUrl: '/themes/Cupertino/CupertinoTabView/demo.dart',
|
||||
codeUrl: 'themes/Cupertino/CupertinoTabView/demo.dart',
|
||||
docUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoTabView-class.html',
|
||||
contentList: [
|
||||
Text0,
|
||||
|
@ -40,7 +40,7 @@ class _DemoState extends State<Demo> {
|
||||
Widget build(BuildContext context) {
|
||||
return WidgetDemo(
|
||||
title: 'CupertinoTimerPicker',
|
||||
codeUrl: '/themes/Cupertino/CupertinoTimerPicker/demo.dart',
|
||||
codeUrl: 'themes/Cupertino/CupertinoTimerPicker/demo.dart',
|
||||
docUrl: 'https://docs.flutter.io/flutter/cupertino/CupertinoTimerPicker-class.html',
|
||||
contentList: [
|
||||
Text0,
|
||||
|
@ -28,7 +28,7 @@ class _DemoState extends State<Demo> {
|
||||
Widget build(BuildContext context) {
|
||||
return WidgetDemo(
|
||||
title: 'MaterialAccentColor',
|
||||
codeUrl: 'elements/themes/Material/MaterialAccentColor',
|
||||
codeUrl: 'themes/Material/MaterialColor/demo.dart',
|
||||
docUrl:
|
||||
'https://docs.flutter.io/flutter/material/MaterialAccentColor-class.html',
|
||||
contentList: [
|
||||
|
@ -47,7 +47,7 @@ class _DemoState extends State<Demo> {
|
||||
],
|
||||
title: 'MaterialApp',
|
||||
docUrl: 'https://docs.flutter.io/flutter/material/MaterialApp-class.html',
|
||||
codeUrl: '../main.dart',
|
||||
codeUrl: 'themes/Material/MaterialApp/demo.dart',
|
||||
);
|
||||
}
|
||||
}
|
@ -39,7 +39,7 @@ class _DemoState extends State<Demo> {
|
||||
MaterialButtonDemo(),
|
||||
],
|
||||
title: 'MaterialButton',
|
||||
codeUrl: 'Material/MaterialButton/demo.dart',
|
||||
codeUrl: 'themes/Material/MaterialButton/demo.dart',
|
||||
docUrl:
|
||||
'https://docs.flutter.io/flutter/material/MaterialButton-class.html',
|
||||
);
|
||||
|
@ -36,7 +36,7 @@ class _DemoState extends State<Demo> {
|
||||
ColorDemo(),
|
||||
],
|
||||
title: "MaterialColor",
|
||||
codeUrl: 'Material/MaterialColor/demo.dart',
|
||||
codeUrl: 'themes/Material/MaterialColor/demo.dart',
|
||||
docUrl:
|
||||
'https://docs.flutter.io/flutter/material/MaterialColor-class.html',
|
||||
);
|
||||
|
@ -27,7 +27,7 @@ class _DemoState extends State<Demo> {
|
||||
Widget build(BuildContext context) {
|
||||
return WidgetDemo(
|
||||
title: 'MaterialPageRoute',
|
||||
codeUrl: 'elements/themes/Material/MaterialPageRoute',
|
||||
codeUrl: 'themes/Material/MaterialPageRoute/demo.dart',
|
||||
docUrl:
|
||||
'https://docs.flutter.io/flutter/material/MaterialPageRoute-class.html',
|
||||
contentList: [
|
||||
|
@ -37,7 +37,7 @@ class _DemoState extends State<Demo> {
|
||||
MergeableMaterialItemDemo(),
|
||||
],
|
||||
title: "MergeableMaterialItem",
|
||||
codeUrl: 'Material/MergeableMaterialItem/demo.dart',
|
||||
codeUrl: 'themes/Material/MergeableMaterialItem/demo.dart',
|
||||
docUrl:
|
||||
'https://docs.flutter.io/flutter/material/MergeableMaterialItem-class.html',
|
||||
);
|
||||
|
10
pubspec.yaml
10
pubspec.yaml
@ -72,9 +72,11 @@ flutter:
|
||||
- lib/widgets/components/Grid/GridTile/demo.dart
|
||||
- lib/widgets/components/Grid/GridTileBar/demo.dart
|
||||
- lib/widgets/components/Grid/GridView/demo.dart
|
||||
- lib/widgets/components/LIst/AnimatedList/demo.dart
|
||||
- lib/widgets/components/LIst/ListBody/demo.dart
|
||||
- lib/widgets/components/LIst/ListView/demo.dart
|
||||
- lib/widgets/components/Grid/GridPaper/demo.dart
|
||||
- lib/widgets/components/Grid/SliverGrid/demo.dart
|
||||
- lib/widgets/components/List/AnimatedList/demo.dart
|
||||
- lib/widgets/components/List/ListBody/demo.dart
|
||||
- lib/widgets/components/List/ListView/demo.dart
|
||||
- lib/widgets/components/Menu/CheckedPopupMenuItem/demo.dart
|
||||
- lib/widgets/components/Menu/DropdownMenuItem/demo.dart
|
||||
- lib/widgets/components/Menu/PopupMenuButton/demo.dart
|
||||
@ -130,6 +132,8 @@ flutter:
|
||||
- lib/widgets/elements/Frame/Box/SizeBox/demo.dart
|
||||
- lib/widgets/elements/Frame/Box/SizedOverflowBox/demo.dart
|
||||
- lib/widgets/elements/Frame/Box/TextBox/demo.dart
|
||||
- lib/widgets/elements/Form/Text/Text/demo.dart
|
||||
- lib/widgets/elements/Form/Text/RichText/index.dart
|
||||
- lib/widgets/elements/Frame/Box/UnconstrainedBox/demo.dart
|
||||
- lib/widgets/elements/Frame/Expanded/Expanded/expanded_demo.dart
|
||||
- lib/widgets/elements/Frame/Layout/Center/demo.dart
|
||||
|
Reference in New Issue
Block a user