-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creacion de la vista inicial para los usuarios de tipo conductor.
- Loading branch information
Showing
9 changed files
with
148 additions
and
4 deletions.
There are no files selected for viewing
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:google_fonts/google_fonts.dart'; | ||
|
||
import '../register/widgets/header_back.dart'; | ||
|
||
class GenerateQR extends StatelessWidget { | ||
const GenerateQR({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: headerBack(context), | ||
body: Center( | ||
child: Text("Generar QR", style: GoogleFonts.rubik(fontSize: 64),), | ||
) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter/src/widgets/framework.dart'; | ||
import 'package:flutter/src/widgets/placeholder.dart'; | ||
import 'package:frontend/views/home/widgets/menu_button.dart'; | ||
import 'package:frontend/views/register/widgets/bottom.dart'; | ||
import 'package:google_fonts/google_fonts.dart'; | ||
|
||
class Home extends StatelessWidget { | ||
const Home({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
bottomSheet: const SizedBox( | ||
height: 100, | ||
child: Center(child: Bottom()) | ||
), | ||
body: Center( | ||
child: Stack( | ||
children: [ | ||
Positioned( | ||
right: 0, | ||
top: 20, | ||
child: TextButton( | ||
onPressed: (){ | ||
Navigator.pushNamed(context, "initial-page"); | ||
}, | ||
child: Image.asset("assets/images/logout.png", scale: 12, color: const Color(0xff344E41),) | ||
), | ||
), | ||
|
||
Column( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children: [ | ||
Text("Bienvenido\nusername", style: GoogleFonts.rubik(fontSize: 32, fontWeight: FontWeight.bold), textAlign:TextAlign.center,), | ||
const SizedBox(height: 70,), | ||
Wrap( | ||
children: const [ | ||
MenuButton(text: 'Envios', imgRoute: 'delivery2.png', btnRoute: '',), | ||
MenuButton(text: 'Escanear QR', imgRoute: 'camara.png', btnRoute: '/scan-qr',), | ||
MenuButton(text: 'Generar QR', imgRoute: 'codigo-qr.png', btnRoute: '/generate-qr',), | ||
MenuButton(text: 'Perfil', imgRoute: 'user.png', btnRoute: '',), | ||
], | ||
) | ||
|
||
|
||
], | ||
), | ||
|
||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter/src/widgets/framework.dart'; | ||
import 'package:flutter/src/widgets/placeholder.dart'; | ||
import 'package:google_fonts/google_fonts.dart'; | ||
|
||
class MenuButton extends StatelessWidget { | ||
const MenuButton({super.key, required this.text, required this.imgRoute, required this.btnRoute}); | ||
final String text; | ||
final String imgRoute; | ||
final String btnRoute; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Container( | ||
// decoration: const BoxDecoration( | ||
// borderRadius: BorderRadius.all(Radius.circular(20)), | ||
// color: Color(0xffd9d9d9), | ||
// ), | ||
margin: const EdgeInsets.symmetric(horizontal: 30), | ||
child: GestureDetector( | ||
onTap: () { | ||
Navigator.pushNamed(context, btnRoute); | ||
}, | ||
child: Column( | ||
children: [ | ||
Container( | ||
decoration: const BoxDecoration( | ||
borderRadius: BorderRadius.all(Radius.circular(20)), | ||
color: Color(0xffDAD7CD), | ||
), | ||
padding: const EdgeInsets.all(35), | ||
child: Image.asset("assets/images/$imgRoute", scale: 8,) | ||
), | ||
const SizedBox(height: 15,), | ||
Text(text, style: GoogleFonts.rubik(fontSize: 20, fontWeight: FontWeight.w600),), | ||
const SizedBox(height: 40,), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:google_fonts/google_fonts.dart'; | ||
|
||
import '../register/widgets/header_back.dart'; | ||
|
||
class ScanQR extends StatelessWidget { | ||
const ScanQR({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: headerBack(context), | ||
body: Center( | ||
child: Text("Escanear QR", style: GoogleFonts.rubik(fontSize: 64),), | ||
) | ||
); | ||
} | ||
} |