Tweak button & dialog paddings (#90)

This commit is contained in:
Tommy Chow 2022-06-27 06:34:31 -04:00
parent 6df6184960
commit c8ee38b321
5 changed files with 7 additions and 7 deletions

View file

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

View file

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

View file

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