initial pages

This commit is contained in:
2023-11-26 07:54:08 -03:00
parent e562891b3c
commit e2c2fa48ce
10 changed files with 265 additions and 114 deletions
+41
View File
@@ -0,0 +1,41 @@
import 'package:flutter/material.dart';
import 'package:pcast/components/nc_base_page.dart';
import 'package:routefly/routefly.dart';
import '../components/nc_button.dart';
class AppPage extends StatelessWidget {
const AppPage({super.key});
@override
Widget build(BuildContext context) {
return NcBasePage(
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
NcButton(
caption: "Quero testar a plataforma",
backgroundColor: Colors.black,
captionColor: Colors.white,
onPressed: () => {
Routefly.navigate('/test'),
},
),
const SizedBox(
height: 40,
),
NcButton(
caption: "Já sou cliente",
backgroundColor: Colors.black,
captionColor: Colors.white,
onPressed: () => {
Routefly.navigate('/login'),
},
),
],
),
),
);
}
}
+17
View File
@@ -0,0 +1,17 @@
import 'package:flutter/material.dart';
import 'package:routefly/routefly.dart';
import '../routes.dart';
class AppWidget extends StatelessWidget {
const AppWidget({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp.router(
routerConfig: Routefly.routerConfig(
routes: routes,
),
);
}
}
+31
View File
@@ -0,0 +1,31 @@
import 'package:flutter/material.dart';
import 'package:pcast/components/nc_base_page.dart';
class LoginPage extends StatefulWidget {
const LoginPage({super.key});
@override
State<LoginPage> createState() => _LoginPageState();
}
class _LoginPageState extends State<LoginPage> {
@override
Widget build(BuildContext context) {
return const NcBasePage(
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"Login Page",
style: TextStyle(
color: Colors.white,
fontSize: 40,
),
),
],
),
),
);
}
}
+31
View File
@@ -0,0 +1,31 @@
import 'package:flutter/material.dart';
import 'package:pcast/components/nc_base_page.dart';
class TestPage extends StatefulWidget {
const TestPage({super.key});
@override
State<TestPage> createState() => _TestPageState();
}
class _TestPageState extends State<TestPage> {
@override
Widget build(BuildContext context) {
return const NcBasePage(
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"Test Page",
style: TextStyle(
color: Colors.white,
fontSize: 40,
),
),
],
),
),
);
}
}