chore: Follow up profile dialogs
This commit is contained in:
parent
1cbeb16616
commit
cfe43c23d5
1 changed files with 6 additions and 2 deletions
|
|
@ -86,10 +86,13 @@ class AdaptiveDialogAction extends StatelessWidget {
|
||||||
class AdaptiveDialogInkWell extends StatelessWidget {
|
class AdaptiveDialogInkWell extends StatelessWidget {
|
||||||
final Widget child;
|
final Widget child;
|
||||||
final VoidCallback onTap;
|
final VoidCallback onTap;
|
||||||
|
final EdgeInsets padding;
|
||||||
|
|
||||||
const AdaptiveDialogInkWell({
|
const AdaptiveDialogInkWell({
|
||||||
super.key,
|
super.key,
|
||||||
required this.onTap,
|
required this.onTap,
|
||||||
required this.child,
|
required this.child,
|
||||||
|
this.padding = const EdgeInsets.all(16),
|
||||||
});
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
@ -100,7 +103,7 @@ class AdaptiveDialogInkWell extends StatelessWidget {
|
||||||
onPressed: onTap,
|
onPressed: onTap,
|
||||||
borderRadius: BorderRadius.circular(AppConfig.borderRadius / 2),
|
borderRadius: BorderRadius.circular(AppConfig.borderRadius / 2),
|
||||||
color: theme.colorScheme.surfaceBright,
|
color: theme.colorScheme.surfaceBright,
|
||||||
padding: EdgeInsets.all(8),
|
padding: padding,
|
||||||
child: child,
|
child: child,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -111,7 +114,7 @@ class AdaptiveDialogInkWell extends StatelessWidget {
|
||||||
borderRadius: BorderRadius.circular(AppConfig.borderRadius / 2),
|
borderRadius: BorderRadius.circular(AppConfig.borderRadius / 2),
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: padding,
|
||||||
child: Center(child: child),
|
child: Center(child: child),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
@ -135,6 +138,7 @@ class AdaptiveIconTextButton extends StatelessWidget {
|
||||||
final color = Theme.of(context).colorScheme.secondary;
|
final color = Theme.of(context).colorScheme.secondary;
|
||||||
return Expanded(
|
return Expanded(
|
||||||
child: AdaptiveDialogInkWell(
|
child: AdaptiveDialogInkWell(
|
||||||
|
padding: EdgeInsets.all(8.0),
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: .min,
|
mainAxisSize: .min,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue