mirror of
https://github.com/foss42/apidash.git
synced 2025-06-01 23:45:19 +08:00
Update button style
This commit is contained in:
@ -67,6 +67,8 @@ const kFormDataButtonLabelTextStyle = TextStyle(
|
||||
);
|
||||
const kTextStylePopupMenuItem = TextStyle(fontSize: 16);
|
||||
|
||||
final kButtonSidebarStyle = ElevatedButton.styleFrom(padding: kPh12);
|
||||
|
||||
const kBorderRadius4 = BorderRadius.all(Radius.circular(4));
|
||||
const kBorderRadius8 = BorderRadius.all(Radius.circular(8));
|
||||
final kBorderRadius10 = BorderRadius.circular(10);
|
||||
@ -93,6 +95,7 @@ const kPt5o10 =
|
||||
EdgeInsets.only(left: 10.0, right: 10.0, top: 5.0, bottom: 10.0);
|
||||
const kPh4 = EdgeInsets.symmetric(horizontal: 4);
|
||||
const kPh8 = EdgeInsets.symmetric(horizontal: 8);
|
||||
const kPh12 = EdgeInsets.symmetric(horizontal: 12);
|
||||
const kPh20 = EdgeInsets.symmetric(
|
||||
horizontal: 20,
|
||||
);
|
||||
|
@ -13,9 +13,6 @@ class SidebarHeader extends ConsumerWidget {
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final mobileScaffoldKey = ref.read(mobileScaffoldKeyStateProvider);
|
||||
final elevatedButtonStyle = ElevatedButton.styleFrom(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||
);
|
||||
|
||||
return Padding(
|
||||
padding: kPe8,
|
||||
@ -25,7 +22,7 @@ class SidebarHeader extends ConsumerWidget {
|
||||
const Spacer(),
|
||||
ElevatedButton(
|
||||
onPressed: onAddNew,
|
||||
style: elevatedButtonStyle,
|
||||
style: kButtonSidebarStyle,
|
||||
child: const Text(
|
||||
kLabelPlusNew,
|
||||
style: kTextStyleButtonSmall,
|
||||
@ -34,7 +31,7 @@ class SidebarHeader extends ConsumerWidget {
|
||||
const SizedBox(width: 12),
|
||||
ElevatedButton(
|
||||
onPressed: onImport,
|
||||
style: elevatedButtonStyle,
|
||||
style: kButtonSidebarStyle,
|
||||
child: const Text(
|
||||
kLabelImport,
|
||||
style: kTextStyleButtonSmall,
|
||||
|
Reference in New Issue
Block a user