cosmetic changes on global components

This commit is contained in:
2023-11-26 12:00:21 -03:00
parent 8524e81a76
commit 1d9da1c7e9
4 changed files with 77 additions and 16 deletions
+4
View File
@@ -28,6 +28,8 @@ class AppPage extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
children: [
NcButton(
width: MediaQuery.of(context).size.width * 0.6,
height: 100,
caption: "Quero testar a plataforma",
backgroundColor: Colors.black,
captionColor: Colors.white,
@@ -39,6 +41,8 @@ class AppPage extends StatelessWidget {
height: 40,
),
NcButton(
width: MediaQuery.of(context).size.width * 0.6,
height: 100,
caption: "Já sou cliente",
backgroundColor: Colors.black,
captionColor: Colors.white,
+30 -11
View File
@@ -1,5 +1,8 @@
import 'package:flutter/material.dart';
import 'package:pcast/components/nc_base_page.dart';
import 'package:pcast/components/nc_button.dart';
import 'package:pcast/components/nc_text_field.dart';
import 'package:velocity_x/velocity_x.dart';
Route routeBuilder(BuildContext ctx, RouteSettings settings) {
return PageRouteBuilder(
@@ -22,21 +25,37 @@ class LoginPage extends StatefulWidget {
}
class _LoginPageState extends State<LoginPage> {
TextEditingController controller = TextEditingController();
@override
Widget build(BuildContext context) {
return const NcBasePage(
return NcBasePage(
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"Login Page",
style: TextStyle(
color: Colors.white,
fontSize: 40,
child: SizedBox(
width: MediaQuery.of(context).size.width * 0.6,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
"Informe o seu email".text.white.italic.xl4.make(),
const SizedBox(
height: 40,
),
),
],
NCTextField(hintText: "Email", controller: controller),
const SizedBox(
height: 40,
),
NcButton(
width: 250,
height: 80,
caption: "Próximo",
backgroundColor: Colors.black,
captionColor: Colors.red,
onPressed: () => {
print(controller.text),
},
),
],
),
),
),
);