Flutter upgrader
This commit is contained in:
parent
b8574bdb80
commit
e78dc3ee1f
|
|
@ -286,6 +286,7 @@ class InvoiceNinjaAppState extends State<InvoiceNinjaApp> {
|
||||||
? ThemeData(
|
? ThemeData(
|
||||||
colorScheme: ColorScheme.dark().copyWith(
|
colorScheme: ColorScheme.dark().copyWith(
|
||||||
secondary: accentColor,
|
secondary: accentColor,
|
||||||
|
primary: accentColor,
|
||||||
),
|
),
|
||||||
pageTransitionsTheme: pageTransitionsTheme,
|
pageTransitionsTheme: pageTransitionsTheme,
|
||||||
indicatorColor: accentColor,
|
indicatorColor: accentColor,
|
||||||
|
|
|
||||||
|
|
@ -31,15 +31,25 @@ class AppButton extends StatelessWidget {
|
||||||
elevation: 4,
|
elevation: 4,
|
||||||
textStyle: TextStyle(
|
textStyle: TextStyle(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
)),
|
),
|
||||||
|
),
|
||||||
child: iconData != null
|
child: iconData != null
|
||||||
? IconText(
|
? IconText(
|
||||||
icon: iconData,
|
icon: iconData,
|
||||||
text: label,
|
text: label,
|
||||||
alignment: MainAxisAlignment.center,
|
alignment: MainAxisAlignment.center,
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
)
|
)
|
||||||
: SizedBox(
|
: SizedBox(
|
||||||
child: Text(label, overflow: TextOverflow.ellipsis),
|
child: Text(
|
||||||
|
label,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
|
),
|
||||||
height: 24,
|
height: 24,
|
||||||
),
|
),
|
||||||
onPressed: onPressed,
|
onPressed: onPressed,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue