From c27c250590683ffed1a587c1763d12019c139872 Mon Sep 17 00:00:00 2001 From: Kelrap Date: Thu, 8 Aug 2024 15:24:50 -0400 Subject: [PATCH] Removes error button padding --- .../widgets/has_error_button.dart | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/lib/pangea/choreographer/widgets/has_error_button.dart b/lib/pangea/choreographer/widgets/has_error_button.dart index 2cc6320f7..007820139 100644 --- a/lib/pangea/choreographer/widgets/has_error_button.dart +++ b/lib/pangea/choreographer/widgets/has_error_button.dart @@ -15,24 +15,21 @@ class ChoreographerHasErrorButton extends StatelessWidget { @override Widget build(BuildContext context) { - return Padding( - padding: const EdgeInsets.only(bottom: 56.0), - child: FloatingActionButton( - onPressed: () { - if (error.type == ChoreoErrorType.unknown) { - ScaffoldMessenger.of(context).showSnackBar( - SnackBar( - duration: const Duration(seconds: 5), - content: Text( - "${error.title(context)} ${error.description(context)}", - ), + return FloatingActionButton( + onPressed: () { + if (error.type == ChoreoErrorType.unknown) { + ScaffoldMessenger.of(context).showSnackBar( + SnackBar( + duration: const Duration(seconds: 5), + content: Text( + "${error.title(context)} ${error.description(context)}", ), - ); - } - }, - mini: true, - child: Icon(error.icon), - ), + ), + ); + } + }, + mini: true, + child: Icon(error.icon), ); } }