初步优化项目结构

This commit is contained in:
toly
2021-09-26 20:50:13 +08:00
parent f16d031417
commit 29a985e1b1
535 changed files with 366 additions and 359 deletions

View File

@@ -0,0 +1,38 @@
import 'package:flutter/material.dart';
import '../../../../components/project/dialogs/dialog_about.dart';
/// create by 张风捷特烈 on 2020-03-25
/// contact me by email 1981462002@qq.com
/// 说明:
// {
// "widgetId": 29,
// "priority": 2,
// "name": "ButtonBar边距和高",
// "subtitle": "【buttonPadding】: 内边距 【EdgeInsetsGeometry】\n"
// "【buttonHeight】: 高 【double】",
// }
class PaddingButtonBar extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ButtonBar(
alignment: MainAxisAlignment.center,
buttonHeight: 40,
buttonPadding: EdgeInsets.only(left: 15,right: 15),
children: <Widget>[
RaisedButton(
color: Colors.blue,
child: Text("Raised"),
onPressed: () => DialogAbout.show(context)),
OutlineButton(
child: Text("Outline"),
onPressed: () => DialogAbout.show(context)),
FlatButton(
color: Colors.blue,
onPressed: () => DialogAbout.show(context),
child: Text("Flat"),
)
],
);
}
}