fix theme
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
dec1820694
commit
00a3b04aab
@ -205,6 +205,9 @@ class MyTheme {
|
|||||||
splashColor: Colors.transparent,
|
splashColor: Colors.transparent,
|
||||||
highlightColor: Colors.transparent,
|
highlightColor: Colors.transparent,
|
||||||
splashFactory: isDesktop ? NoSplash.splashFactory : null,
|
splashFactory: isDesktop ? NoSplash.splashFactory : null,
|
||||||
|
outlinedButtonTheme: OutlinedButtonThemeData(
|
||||||
|
style:
|
||||||
|
OutlinedButton.styleFrom(side: BorderSide(color: Colors.white38))),
|
||||||
textButtonTheme: isDesktop
|
textButtonTheme: isDesktop
|
||||||
? TextButtonThemeData(
|
? TextButtonThemeData(
|
||||||
style: ButtonStyle(splashFactory: NoSplash.splashFactory),
|
style: ButtonStyle(splashFactory: NoSplash.splashFactory),
|
||||||
@ -643,11 +646,11 @@ class CustomAlertDialog extends StatelessWidget {
|
|||||||
content: ConstrainedBox(
|
content: ConstrainedBox(
|
||||||
constraints: contentBoxConstraints,
|
constraints: contentBoxConstraints,
|
||||||
child: Theme(
|
child: Theme(
|
||||||
data: ThemeData(
|
data: Theme.of(context).copyWith(
|
||||||
inputDecorationTheme: InputDecorationTheme(
|
inputDecorationTheme: InputDecorationTheme(
|
||||||
isDense: true, contentPadding: EdgeInsets.all(15)),
|
isDense: true, contentPadding: EdgeInsets.all(15))),
|
||||||
|
child: content),
|
||||||
),
|
),
|
||||||
child: content)),
|
|
||||||
actions: actions,
|
actions: actions,
|
||||||
actionsPadding: EdgeInsets.fromLTRB(0, 0, padding, padding),
|
actionsPadding: EdgeInsets.fromLTRB(0, 0, padding, padding),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user