Skip to content

Instantly share code, notes, and snippets.

@koprodev
Last active December 23, 2021 07:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koprodev/05ffefb07f212e8947e07b56e4bc0836 to your computer and use it in GitHub Desktop.
Save koprodev/05ffefb07f212e8947e07b56e4bc0836 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
// test 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: Scaffold(
appBar: AppBar(
title: const Text('hello world'),
),
body: Center(
child: Column(
children: [
const SizedBox(height: 100.0,),
TextButton(
onPressed: () {},
child: const Text("Text BUTTON"),
),
const SizedBox(height: 100.0,),
ElevatedButton(
onPressed: () {},
child: const Text("Elevated BUTTON"),
),
const SizedBox(height: 100.0,),
OutlinedButton(
onPressed: () {},
child: const Text("Outlined BUTTON"),
),
],
),
),
),
);
}
}
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Text(
'Hello, World!!!',
style: Theme.of(context).textTheme.headline4,
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment