applied new changes from figma
This commit is contained in:
parent
7756ac81a0
commit
e1dae4733d
|
@ -13,7 +13,6 @@ class MenuItemWidget extends StatelessWidget {
|
|||
final String? subText;
|
||||
final TextStyle? textStyle;
|
||||
final Color? leadingIconColor;
|
||||
final bool isBigger;
|
||||
final LeadingIcon? leadingIcon;
|
||||
final Widget? leadingSwitch;
|
||||
const MenuItemWidget({
|
||||
|
@ -21,7 +20,6 @@ class MenuItemWidget extends StatelessWidget {
|
|||
this.subText,
|
||||
this.textStyle,
|
||||
this.leadingIconColor,
|
||||
this.isBigger = false,
|
||||
this.leadingIcon,
|
||||
this.leadingSwitch,
|
||||
Key? key,
|
||||
|
@ -31,13 +29,14 @@ class MenuItemWidget extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
final enteTheme = Theme.of(context).colorScheme.enteTheme;
|
||||
return Container(
|
||||
height: isBigger ? 48 : 44,
|
||||
width: double.infinity,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Row(
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 12),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Icon(
|
||||
|
@ -64,14 +63,15 @@ class MenuItemWidget extends StatelessWidget {
|
|||
),
|
||||
Text(
|
||||
subText!,
|
||||
style: enteTheme.textTheme.small
|
||||
.copyWith(color: enteTheme.colorScheme.textMuted),
|
||||
style: enteTheme.textTheme.small.copyWith(
|
||||
color: enteTheme.colorScheme.textMuted),
|
||||
),
|
||||
],
|
||||
)
|
||||
: const SizedBox.shrink(),
|
||||
],
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
height: 24,
|
||||
child: leadingIcon == LeadingIcon.chevronRight
|
||||
|
|
Loading…
Reference in a new issue