forked from alibaba/flutter-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.dart
More file actions
46 lines (36 loc) · 1023 Bytes
/
index.dart
File metadata and controls
46 lines (36 loc) · 1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
* Created with Android Studio.
* User: 三帆
* Date: 07/01/2019
* Time: 10:26
* email: sanfan.hx@alibaba-inc.com
* tartget: xxx
*/
import '../../../../common/widget_demo.dart';
import 'package:flutter/material.dart';
import 'demo.dart';
const String _Text0 = """
### **简介**
> SimpleDialog 是一个用于向用户传递确定信息并提供选项的弹出层
### **基本用法**
> 通常作为子窗口小部件传递给showDialog,后者显示对话框。
""";
class Demo extends StatefulWidget {
static const String routeName = '/components/Dialog/SimpleDialog';
@override
_DemoState createState() => _DemoState();
}
class _DemoState extends State<Demo> {
@override
Widget build(BuildContext context) {
return WidgetDemo(
title: 'SimpleDialog',
codeUrl: 'components/Dialog/SimpleDialog/demo.dart',
contentList: [
_Text0,
SimpleDialogDemo()
],
docUrl: 'https://docs.flutter.io/flutter/material/SimpleDialog-class.html',
);
}
}