SHARE
TWEET

Untitled

a guest Apr 18th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_flat_app/screens/Login/index.dart';
  3. import 'package:flutter_flat_app/screens/SignUp/index.dart';
  4. import 'package:flutter_flat_app/screens/Home/index.dart';
  5. import 'package:flutter_flat_app/theme/style.dart';
  6.  
  7. class Routes {
  8.  
  9.   var routes = <String, WidgetBuilder>{
  10.     "/SignUp": (BuildContext context) => new SignUpScreen(),
  11.     "/HomePage": (BuildContext context) => new HomeScreen()
  12.   };
  13.  
  14.   Routes() {
  15.     runApp(new MaterialApp(
  16.       title: "Flutter Flat App",
  17.       home: new LoginScreen(),
  18.       theme: appTheme,
  19.       routes: routes,
  20.     ));
  21.   }
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top