You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
904 B
40 lines
904 B
4 years ago
|
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();
|
||
|
},
|
||
|
);
|
||
|
},
|
||
|
),
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|