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.
ansu_ui/example/lib/example_bottom_button.dart

49 lines
1.3 KiB

import 'package:ansu_ui/ansu_ui.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: 'ASBottomButton',
body: Center(),
bottomNavigationBar: Column(
mainAxisSize: MainAxisSize.min,
children: [
ASBottomButton.infinity(
title: '无渐变infinity',
onPressed: () {},
),
ASBottomButton.gradient(
title: '有渐变gradient',
onPressed: () {},
),
Row(
children: [
SizedBox(
width: 112.w,
child: ASBottomButton.shortWhite(
title: 'shortwhite',
onPressed: () {},
),
),
Expanded(
child: ASBottomButton.gradient(
title: '有渐变gradient',
onPressed: () {},
))
],
)
],
),
);
}
}