Skip to content

Instantly share code, notes, and snippets.

@unger1984
Last active January 19, 2022 12:57
Show Gist options
  • Select an option

  • Save unger1984/1fbcdb89ae04ae04d06deb5363bd68d9 to your computer and use it in GitHub Desktop.

Select an option

Save unger1984/1fbcdb89ae04ae04d06deb5363bd68d9 to your computer and use it in GitHub Desktop.
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