Merge branch 'master' of http://192.168.2.201:8099/laiiihz/ansu_ui
# Conflicts: # example/lib/example_button.dartnull_safety
commit
e2f54c269e
@ -0,0 +1,39 @@
|
|||||||
|
import 'package:ansu_ui/ansu_ui.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class ExampleDrawer extends StatefulWidget {
|
||||||
|
ExampleDrawer({Key key}) : super(key: key);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_ExampleDrawerState createState() => _ExampleDrawerState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _ExampleDrawerState extends State<ExampleDrawer> {
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return ASScaffold(
|
||||||
|
title: 'Drawer',
|
||||||
|
endDrawer: ASDrawer(
|
||||||
|
children: [
|
||||||
|
Text('title'),
|
||||||
|
],
|
||||||
|
bottom: ASLongButton.solid(
|
||||||
|
title: '确定',
|
||||||
|
onPressed: () {},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
body: Center(
|
||||||
|
child: Builder(
|
||||||
|
builder: (context) {
|
||||||
|
return ASLongButton.solid(
|
||||||
|
title: 'DRAWER',
|
||||||
|
onPressed: () {
|
||||||
|
Scaffold.of(context).openEndDrawer();
|
||||||
|
},
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue