* 'master' of 192.168.2.201:laiiihz/ansu_ui: 修改按钮,add bottom button # Conflicts: # example/lib/main.dartnull_safety
commit
1830f487d4
@ -0,0 +1,49 @@
|
||||
import 'package:ansu_ui/ansu_ui.dart';
|
||||
import 'package:ansu_ui/buttons/as_bottom_button.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class ExampleBottomButton extends StatefulWidget {
|
||||
ExampleBottomButton({Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_ExampleBottomButtonState createState() => _ExampleBottomButtonState();
|
||||
}
|
||||
|
||||
class _ExampleBottomButtonState extends State<ExampleBottomButton> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ASScaffold(
|
||||
title: 'BottomButton',
|
||||
body: Center(),
|
||||
bottomNavigationBar: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
ASBottomButton.infinity(
|
||||
title: 'null',
|
||||
onPressed: () {},
|
||||
),
|
||||
ASBottomButton.gradient(
|
||||
title: '新增地址',
|
||||
onPressed: () {},
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
SizedBox(
|
||||
width: 112.w,
|
||||
child: ASBottomButton.shortWhite(
|
||||
title: 'null',
|
||||
onPressed: () {},
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: ASBottomButton.gradient(
|
||||
title: 'null',
|
||||
onPressed: () {},
|
||||
))
|
||||
],
|
||||
)
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue