mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-26 06:49:22 +00:00
Use theme
This commit is contained in:
parent
e7e81da05d
commit
782e6bc978
@ -36,7 +36,10 @@ Widget buildErrorCard(String message,
|
||||
{List<Widget> actions, bool hide = false}) {
|
||||
if (hide) return Container();
|
||||
|
||||
return Card(
|
||||
return Theme(
|
||||
data:
|
||||
ThemeData(textTheme: TextTheme(body1: TextStyle(color: Colors.white))),
|
||||
child: Card(
|
||||
elevation: 2.0,
|
||||
color: Colors.red,
|
||||
child: Padding(
|
||||
@ -53,7 +56,6 @@ Widget buildErrorCard(String message,
|
||||
Flexible(
|
||||
child: Text(
|
||||
message,
|
||||
style: TextStyle(color: Colors.white),
|
||||
maxLines: null,
|
||||
),
|
||||
),
|
||||
@ -63,6 +65,7 @@ Widget buildErrorCard(String message,
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user