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.
50 lines
1.3 KiB
50 lines
1.3 KiB
4 years ago
|
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: () {},
|
||
|
))
|
||
|
],
|
||
|
)
|
||
|
],
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|