You've already forked flutter-rp-example
First commit
This commit is contained in:
25
lib/pages/home.dart
Normal file
25
lib/pages/home.dart
Normal file
@@ -0,0 +1,25 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:sampleapp/services/auth/auth.dart';
|
||||
import 'package:sampleapp/widgets/home_screen.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import '../globals.dart';
|
||||
import '../locator.dart';
|
||||
import '../services/auth/auth_view_model.dart';
|
||||
import '../widgets/components/reflex_app_bar.dart';
|
||||
|
||||
class HomePage extends Page {
|
||||
final VoidCallback onLogout;
|
||||
|
||||
const HomePage({required this.onLogout})
|
||||
: super(key: const ValueKey('HomePage'));
|
||||
|
||||
@override
|
||||
Route createRoute(BuildContext context) {
|
||||
return MaterialPageRoute(
|
||||
settings: this,
|
||||
builder: (BuildContext context) {
|
||||
return HomeScreen(onLogout: onLogout);
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
18
lib/pages/login.dart
Normal file
18
lib/pages/login.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../widgets/login_screen.dart';
|
||||
|
||||
class LoginPage extends Page {
|
||||
final VoidCallback onLogin;
|
||||
|
||||
const LoginPage({required this.onLogin})
|
||||
: super(key: const ValueKey('LoginPage'));
|
||||
|
||||
@override
|
||||
Route createRoute(BuildContext context) {
|
||||
return MaterialPageRoute(
|
||||
settings: this,
|
||||
builder: (BuildContext context) => LoginScreen(onLogin: onLogin),
|
||||
);
|
||||
}
|
||||
}
|
||||
18
lib/pages/splash.dart
Normal file
18
lib/pages/splash.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:sampleapp/widgets/splash_screen.dart';
|
||||
|
||||
import '../globals.dart';
|
||||
|
||||
class SplashPage extends Page {
|
||||
const SplashPage();
|
||||
|
||||
@override
|
||||
Route createRoute(BuildContext context) {
|
||||
return MaterialPageRoute(
|
||||
settings: this,
|
||||
builder: (BuildContext context) {
|
||||
return const SplashScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user