Created with <3 with dartpad.dev.
Created
August 10, 2023 12:25
-
-
Save Lootwig/ce3bf404b0b41b352a3d9080dfaa136c to your computer and use it in GitHub Desktop.
solar-midnight-7981
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Demo', | |
theme: ThemeData( | |
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), | |
useMaterial3: true, | |
), | |
home: Scaffold( | |
body: Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: [ | |
Center( | |
child: Card( | |
surfaceTintColor: null, | |
child: Padding( | |
padding: const EdgeInsets.all(25.0), | |
child: Text('null tint'), | |
), | |
), | |
), | |
Center( | |
child: Card( | |
surfaceTintColor: Colors.white, | |
child: Padding( | |
padding: const EdgeInsets.all(25.0), | |
child: Text('white tint'), | |
), | |
), | |
), | |
], | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment