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