Update button style

This commit is contained in:
Ashita Prasad
2024-07-15 00:26:08 +05:30
parent 71f987e72f
commit e1437a51ca
2 changed files with 5 additions and 5 deletions

View File

@ -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,
);

View File

@ -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,