diff options
author | Iván Ávalos <avalos@disroot.org> | 2023-05-20 11:10:24 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2023-05-20 11:12:14 -0600 |
commit | 3a3af285a7460a7e2f6850b9a8dd7465492163f6 (patch) | |
tree | 2a6b3bf80e0f54df85e552b5a0eec2bddf30daf2 /lib | |
download | linkchat-3a3af285a7460a7e2f6850b9a8dd7465492163f6.tar.gz linkchat-3a3af285a7460a7e2f6850b9a8dd7465492163f6.tar.bz2 linkchat-3a3af285a7460a7e2f6850b9a8dd7465492163f6.zip |
Primer commit
Diffstat (limited to 'lib')
-rw-r--r-- | lib/main.dart | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/lib/main.dart b/lib/main.dart new file mode 100644 index 0000000..0d97e25 --- /dev/null +++ b/lib/main.dart @@ -0,0 +1,45 @@ +import 'package:flutter/material.dart'; + +void main() { + runApp(const MyApp()); +} + +class MyApp extends StatelessWidget { + const MyApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'LinkChat', + theme: ThemeData( + colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), + useMaterial3: true, + ), + home: const MyHomePage(title: 'LinkChat'), + ); + } +} + +class MyHomePage extends StatefulWidget { + const MyHomePage({super.key, required this.title}); + + final String title; + + @override + State<MyHomePage> createState() => _MyHomePageState(); +} + +class _MyHomePageState extends State<MyHomePage> { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + backgroundColor: Theme.of(context).colorScheme.inversePrimary, + title: Text(widget.title), + ), + body: Center( + child: Text(widget.title), + ), + ); + } +} |