Last active
January 19, 2022 12:57
-
-
Save unger1984/1fbcdb89ae04ae04d06deb5363bd68d9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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'; | |
| const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| theme: ThemeData.dark().copyWith( | |
| scaffoldBackgroundColor: darkBlue, | |
| ), | |
| debugShowCheckedModeBanner: false, | |
| home: GestureDetector( | |
| onTap: () => print('tap'), | |
| child: Scaffold( | |
| body: Center( | |
| child: SizedBox( | |
| width: 100, | |
| height: 100, | |
| child: ElevatedButton( | |
| onPressed: () => print('test'), | |
| child: const Center(child: Text('test')), | |
| ), | |
| ), | |
| ), | |
| ), | |
| ), | |
| ); | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment