Skip to content

Instantly share code, notes, and snippets.

@cankush625
Last active October 28, 2020 19:29
Show Gist options
  • Save cankush625/9f350d759046d8c7d991d62170604d27 to your computer and use it in GitHub Desktop.
Save cankush625/9f350d759046d8c7d991d62170604d27 to your computer and use it in GitHub Desktop.
import 'package:chat_app/screens/chat.dart';
import 'package:chat_app/auth/auth.dart';
import 'package:chat_app/auth/reg.dart';
import 'package:chat_app/auth/login.dart';
import 'package:chat_app/screens/home.dart';
import 'package:chat_app/screens/profile.dart';
import 'package:chat_app/screens/location.dart';
import 'package:flutter/material.dart';
import 'package:flutter_statusbarcolor/flutter_statusbarcolor.dart';
void main() async {
FlutterStatusbarcolor.setStatusBarColor(Colors.indigo[900]);
runApp(
MaterialApp(
debugShowCheckedModeBanner: false,
initialRoute: "auth",
routes: {
"auth": (context) => Auth(),
"home": (context) => Home(),
"reg": (context) => AccountRegistration(),
"login": (context) => Login(),
"chat": (context) => Chat(),
"profile": (context) => Profile(),
"location": (context) => Location(),
},
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment