Skip to content

Instantly share code, notes, and snippets.

@Lootwig
Created August 10, 2023 12:25
Show Gist options
  • Save Lootwig/ce3bf404b0b41b352a3d9080dfaa136c to your computer and use it in GitHub Desktop.
Save Lootwig/ce3bf404b0b41b352a3d9080dfaa136c to your computer and use it in GitHub Desktop.
solar-midnight-7981
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