mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-09-23 09:43:06 +08:00
Example for Unit Test (#52)
This commit is contained in:
20
unit_testing/lib/main.dart
Normal file
20
unit_testing/lib/main.dart
Normal file
@ -0,0 +1,20 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:unit_testing/screens/home_screen.dart';
|
||||
import 'package:unit_testing/screens/sign_in_screen.dart';
|
||||
|
||||
void main() => runApp(MyApp());
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
debugShowCheckedModeBanner: false,
|
||||
title: 'Material App',
|
||||
initialRoute: "/",
|
||||
routes: {
|
||||
"/": (context) => SignInScreen(),
|
||||
"/homeScreen": (context) => HomeScreen(),
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user