mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-07-15 03:04:25 +08:00
Add:创建 flutter go web 版
This commit is contained in:
@ -1,47 +0,0 @@
|
||||
/// Created with Android Studio.
|
||||
/// User: 三帆
|
||||
/// Date: 07/01/2019
|
||||
/// Time: 10:31
|
||||
/// email: sanfan.hx@alibaba-inc.com
|
||||
/// target: xxx
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class AboutDialogDemo extends StatefulWidget {
|
||||
_Demo createState() => _Demo();
|
||||
}
|
||||
|
||||
class _Demo extends State<AboutDialogDemo> {
|
||||
|
||||
void showAlertDialog(BuildContext context) {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (_) => AboutDialog(
|
||||
applicationName: '名称',
|
||||
applicationIcon: Icon(Icons.ac_unit),
|
||||
applicationVersion: 'V1.0',
|
||||
children: <Widget>[
|
||||
Text('我是一个关于的dialog')
|
||||
]
|
||||
));
|
||||
}
|
||||
Widget build(BuildContext context) {
|
||||
return RaisedButton(
|
||||
padding: EdgeInsets.fromLTRB(10.0, 10.0, 10.0, 10.0),
|
||||
//padding
|
||||
child: Text(
|
||||
'show aboutDialog',
|
||||
style: TextStyle(
|
||||
fontSize: 18.0, //textsize
|
||||
color: Colors.white, // textcolor
|
||||
),
|
||||
),
|
||||
color: Theme.of(context).accentColor,
|
||||
elevation: 4.0,
|
||||
//shadow
|
||||
splashColor: Colors.blueGrey,
|
||||
onPressed: () {
|
||||
showAlertDialog(context);
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user