Removes error button padding

This commit is contained in:
Kelrap 2024-08-08 15:24:50 -04:00
parent b15a4ef5a7
commit c27c250590

View file

@ -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),
);
}
}