浏览代码

add more gallery samples

/siyaoH-1.17-PlatformMessage
xingweizhu 4 年前
当前提交
381ed7f1
共有 2 个文件被更改,包括 30 次插入2 次删除
  1. 4
      Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/demo/material/dialog_demo.cs
  2. 28
      Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/gallery/demos.cs

4
Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/demo/material/dialog_demo.cs


readonly GlobalKey<ScaffoldState> _scaffoldKey = GlobalKey<ScaffoldState>.key();
TimeOfDay _selectedTime;
void initState() {
public override void initState() {
base.initState();
DateTime now = DateTime.Now;
_selectedTime = new TimeOfDay(hour: now.Hour, minute: now.Minute);

28
Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/gallery/demos.cs


documentationUrl: "https://docs.flutter.io/flutter/material/PaginatedDataTable-class.html",
buildRoute: (BuildContext context) => new DataTableDemo()
),
new GalleryDemo(
title: "Dialogs",
subtitle: "Simple, alert, and fullscreen",
icon: GalleryIcons.dialogs,
category: GalleryDemoCategory._kMaterialComponents,
routeName: DialogDemo.routeName,
documentationUrl: "https://docs.flutter.io/flutter/material/showDialog.html",
buildRoute: (BuildContext context) => new DialogDemo()
),
new GalleryDemo(
title: "Elevations",
subtitle: "Shadow values on cards",
// TODO(larche): Change to custom icon for elevations when one exists.
icon: GalleryIcons.cupertino_progress,
category: GalleryDemoCategory._kMaterialComponents,
routeName: ElevationDemo.routeName,
documentationUrl: "https://docs.flutter.io/flutter/material/Material/elevation.html",
buildRoute: (BuildContext context) => new ElevationDemo()
),
new GalleryDemo(
title: "Navigation drawer",
subtitle: "Navigation drawer with standard header",
icon: GalleryIcons.menu,
category: GalleryDemoCategory._kMaterialComponents,
routeName: DrawerDemo.routeName,
documentationUrl: "https://docs.flutter.io/flutter/material/Drawer-class.html",
buildRoute: (BuildContext context) => new DrawerDemo()
),
};
return galleryDemos;

正在加载...
取消
保存