main.dart 973 Bytes
Newer Older
P.Lalitha Manasa's avatar
P.Lalitha Manasa committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter_examples/screens/Home.dart';
import 'package:flutter_examples/utils/routes.dart';

void main() {
  runApp(new MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Demo',
      theme: new ThemeData(
        primarySwatch: Colors.deepPurple,
      ),
      home: new Home(),
      routes: Routes.routes,
      onUnknownRoute: (RouteSettings rs) => new MaterialPageRoute(
            builder: (context) => new Scaffold(
                  appBar: new AppBar(
                    title: new Text('Beta'),
                  ),
                  body: new Center(
                    child: Text('Under Construction'),
                  ),
                ),
          ),
    );
  }
}