修改第6章示例

This commit is contained in:
18871002288 2019-08-08 17:33:19 +08:00
parent cd13efc8fb
commit d97adda005
2 changed files with 9 additions and 7 deletions

View File

@ -13,6 +13,7 @@ class MyApp extends StatelessWidget {
title: Text('CupertinoAlertDialog组件示例'),
),
body: Center(
//
child: CupertinoAlertDialog(
title: Text('提示'), //
content: SingleChildScrollView(
@ -24,6 +25,7 @@ class MyApp extends StatelessWidget {
],
),
),
//
actions: <Widget>[
CupertinoDialogAction(
child: Text('确定'),
@ -39,5 +41,4 @@ class MyApp extends StatelessWidget {
),
);
}
}
}

View File

@ -13,12 +13,13 @@ class MyApp extends StatelessWidget {
title: Text('CupertinoButton组件示例'),
),
body: Center(
//Cupertino风格按钮
child: CupertinoButton(
child: Text(//label
'CupertinoButton',
),
color: Colors.blue,//
onPressed: (){},//
child: Text(//label
'CupertinoButton',
),
color: Colors.blue,//
onPressed: (){},//
),
),
),