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,
 | 
			
		||||
    highlightColor: Colors.transparent,
 | 
			
		||||
    splashFactory: isDesktop ? NoSplash.splashFactory : null,
 | 
			
		||||
    outlinedButtonTheme: OutlinedButtonThemeData(
 | 
			
		||||
        style:
 | 
			
		||||
            OutlinedButton.styleFrom(side: BorderSide(color: Colors.white38))),
 | 
			
		||||
    textButtonTheme: isDesktop
 | 
			
		||||
        ? TextButtonThemeData(
 | 
			
		||||
            style: ButtonStyle(splashFactory: NoSplash.splashFactory),
 | 
			
		||||
@ -643,11 +646,11 @@ class CustomAlertDialog extends StatelessWidget {
 | 
			
		||||
        content: ConstrainedBox(
 | 
			
		||||
          constraints: contentBoxConstraints,
 | 
			
		||||
          child: Theme(
 | 
			
		||||
                data: ThemeData(
 | 
			
		||||
              data: Theme.of(context).copyWith(
 | 
			
		||||
                  inputDecorationTheme: InputDecorationTheme(
 | 
			
		||||
                      isDense: true, contentPadding: EdgeInsets.all(15)),
 | 
			
		||||
                      isDense: true, contentPadding: EdgeInsets.all(15))),
 | 
			
		||||
              child: content),
 | 
			
		||||
        ),
 | 
			
		||||
                child: content)),
 | 
			
		||||
        actions: actions,
 | 
			
		||||
        actionsPadding: EdgeInsets.fromLTRB(0, 0, padding, padding),
 | 
			
		||||
      ),
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user