Tweak button & dialog paddings (#90)
This commit is contained in:
parent
6df6184960
commit
c8ee38b321
5 changed files with 7 additions and 7 deletions
|
|
@ -181,7 +181,7 @@ class ProfileCard extends StatelessWidget {
|
|||
trailing: Button(
|
||||
onPressed: () => _showLogoutDialog(context),
|
||||
icon: const Icon(Icons.logout_outlined),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 15.0),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 15.0, vertical: 10.0),
|
||||
fill: true,
|
||||
color: Colors.red,
|
||||
child: const Text('Log Out'),
|
||||
|
|
@ -200,7 +200,7 @@ class ProfileCard extends StatelessWidget {
|
|||
color: Theme.of(context).colorScheme.secondary,
|
||||
onPressed: () => _showLoginDialog(context),
|
||||
fill: true,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 15.0),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 15.0, vertical: 10.0),
|
||||
icon: const Icon(Icons.login),
|
||||
child: const Text('Log In'),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -107,6 +107,7 @@ class _OtherSettingsState extends State<OtherSettings> {
|
|||
),
|
||||
...[
|
||||
Button(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 15.0, vertical: 10.0),
|
||||
icon: const Icon(Icons.delete_sweep),
|
||||
child: const Text('Clear Image Cache'),
|
||||
onPressed: () async {
|
||||
|
|
@ -122,6 +123,7 @@ class _OtherSettingsState extends State<OtherSettings> {
|
|||
},
|
||||
),
|
||||
Button(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 15.0, vertical: 10.0),
|
||||
onPressed: () => _showConfirmDialog(context),
|
||||
icon: const Icon(Icons.restore),
|
||||
child: const Text('Reset All Settings'),
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ class BlockButton extends StatelessWidget {
|
|||
final isBlocked = authStore.user.blockedUsers.where((blockedUser) => blockedUser.userId == targetUserId).isNotEmpty;
|
||||
|
||||
return Button(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 15.0, vertical: 10.0),
|
||||
icon: const Icon(Icons.block),
|
||||
color: Colors.red,
|
||||
fill: true,
|
||||
|
|
|
|||
|
|
@ -16,13 +16,9 @@ class FrostyDialog extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AlertDialog(
|
||||
titlePadding: const EdgeInsets.all(30.0),
|
||||
titlePadding: const EdgeInsets.fromLTRB(30.0, 30.0, 30.0, 20.0),
|
||||
contentPadding: const EdgeInsets.fromLTRB(30.0, 0.0, 30.0, 30.0),
|
||||
shape: RoundedRectangleBorder(
|
||||
side: BorderSide(
|
||||
color: Colors.deepPurpleAccent.withOpacity(0.3),
|
||||
width: 3.0,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(20.0),
|
||||
),
|
||||
title: Text(
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ class ReportButton extends StatelessWidget {
|
|||
},
|
||||
),
|
||||
),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 15.0, vertical: 10.0),
|
||||
color: Colors.red,
|
||||
fill: true,
|
||||
child: Text('Report $displayName'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue