Encrypted messaging app
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.8 KiB

  1. import 'package:flutter/material.dart';
  2. import '/views/main/home.dart';
  3. import '/views/authentication/unauthenticated_landing.dart';
  4. import '/views/authentication/login.dart';
  5. import '/views/authentication/signup.dart';
  6. void main() {
  7. runApp(const MyApp());
  8. }
  9. class MyApp extends StatelessWidget {
  10. const MyApp({Key? key}) : super(key: key);
  11. static const String _title = 'Envelope';
  12. @override
  13. Widget build(BuildContext context) {
  14. return MaterialApp(
  15. title: _title,
  16. routes: {
  17. '/home': (context) => const Home(),
  18. '/landing': (context) => const UnauthenticatedLandingWidget(),
  19. '/login': (context) => const Login(),
  20. '/signup': (context) => const Signup(),
  21. },
  22. home: const Scaffold(
  23. backgroundColor: Colors.cyan,
  24. body: SafeArea(
  25. child: Home(),
  26. )
  27. ),
  28. theme: ThemeData(
  29. appBarTheme: const AppBarTheme(
  30. backgroundColor: Colors.cyan,
  31. elevation: 0,
  32. ),
  33. inputDecorationTheme: const InputDecorationTheme(
  34. border: OutlineInputBorder(),
  35. focusedBorder: OutlineInputBorder(),
  36. labelStyle: TextStyle(
  37. color: Colors.white,
  38. fontSize: 30,
  39. ),
  40. filled: true,
  41. fillColor: Colors.white,
  42. ),
  43. ),
  44. );
  45. }
  46. }