criada a tela perfil_screen.dart
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:line_icons/line_icons.dart';
|
||||
import 'package:rkm_educa_app/models/aluno_model.dart';
|
||||
import 'package:rkm_educa_app/screens/login_screen.dart';
|
||||
import 'package:rkm_educa_app/screens/perfil_screen.dart';
|
||||
import 'package:rkm_educa_app/utils/colors.dart';
|
||||
import 'package:rkm_educa_app/widgets/text_custom.dart';
|
||||
|
||||
import 'item_drawer.dart';
|
||||
|
||||
class DrawerCustom extends StatelessWidget {
|
||||
const DrawerCustom({Key? key}) : super(key: key);
|
||||
AlunoModel alunoModel;
|
||||
DrawerCustom({
|
||||
required this.alunoModel
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -23,32 +27,67 @@ class DrawerCustom extends StatelessWidget {
|
||||
radius: 70,
|
||||
child: ClipRRect(
|
||||
borderRadius:BorderRadius.circular(70),
|
||||
child: Image.asset("assets/images/aluna.jpeg"),
|
||||
child: Image.asset(alunoModel.foto),
|
||||
)
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: TextCustom(text: 'Maria da Silva',fontWeight: FontWeight.bold,size: 16.0,textAlign: TextAlign.center),
|
||||
child: TextCustom(text: alunoModel.nome,fontWeight: FontWeight.bold,size: 16.0,textAlign: TextAlign.center),
|
||||
),
|
||||
Container(
|
||||
height: height*0.5,
|
||||
child: ListView(
|
||||
children: [
|
||||
ItemDrawer(icone: LineIcons.userCircle,texto: 'Perfil',),
|
||||
ItemDrawer(
|
||||
icone: LineIcons.userCircle,
|
||||
texto: 'Perfil',
|
||||
onPressed: ()=> Navigator.pushReplacement(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) => PerfilScreen(alunoModel: alunoModel,)),
|
||||
),
|
||||
),
|
||||
Container(height: 1,color: PaletteColors.divider,margin: EdgeInsets.symmetric(horizontal: 20),),
|
||||
ItemDrawer(icone: LineIcons.clipboardList,texto: 'Boletim Escolar',),
|
||||
ItemDrawer(
|
||||
icone: LineIcons.clipboardList,
|
||||
texto: 'Boletim Escolar',
|
||||
onPressed: (){},
|
||||
),
|
||||
Container(height: 1,color: PaletteColors.divider,margin: EdgeInsets.symmetric(horizontal: 20),),
|
||||
ItemDrawer(icone: LineIcons.fileContract,texto: 'Histórico Escolar',),
|
||||
ItemDrawer(
|
||||
icone: LineIcons.fileContract,
|
||||
texto: 'Histórico Escolar',
|
||||
onPressed: (){},
|
||||
),
|
||||
Container(height: 1,color: PaletteColors.divider,margin: EdgeInsets.symmetric(horizontal: 20),),
|
||||
ItemDrawer(icone: LineIcons.checkSquareAlt,texto: 'Chamadas / Presenças',),
|
||||
ItemDrawer(
|
||||
icone: LineIcons.checkSquareAlt,
|
||||
texto: 'Chamadas / Presenças',
|
||||
onPressed: (){},
|
||||
),
|
||||
Container(height: 1,color: PaletteColors.divider,margin: EdgeInsets.symmetric(horizontal: 20),),
|
||||
ItemDrawer(icone: LineIcons.calendarAlt,texto: 'Agenda Escolar',),
|
||||
ItemDrawer(
|
||||
icone: LineIcons.calendarAlt,
|
||||
texto: 'Agenda Escolar',
|
||||
onPressed: (){},
|
||||
),
|
||||
Container(height: 1,color: PaletteColors.divider,margin: EdgeInsets.symmetric(horizontal: 20),),
|
||||
ItemDrawer(icone: LineIcons.calendarTimes,texto: 'Eventos Escolares',),
|
||||
ItemDrawer(
|
||||
icone: LineIcons.calendarTimes,
|
||||
texto: 'Eventos Escolares',
|
||||
onPressed: (){},
|
||||
),
|
||||
Container(height: 1,color: PaletteColors.divider,margin: EdgeInsets.symmetric(horizontal: 20),),
|
||||
ItemDrawer(icone: LineIcons.mobilePhone,texto: 'Contatos',),
|
||||
ItemDrawer(
|
||||
icone: LineIcons.mobilePhone,
|
||||
texto: 'Contatos',
|
||||
onPressed: (){},
|
||||
),
|
||||
Container(height: 1,color: PaletteColors.divider,margin: EdgeInsets.symmetric(horizontal: 20),),
|
||||
ItemDrawer(icone: LineIcons.bus,texto: 'Passe',),
|
||||
ItemDrawer(
|
||||
icone: LineIcons.bus,
|
||||
texto: 'Passe',
|
||||
onPressed: (){},
|
||||
),
|
||||
Container(height: 1,color: PaletteColors.divider,margin: EdgeInsets.symmetric(horizontal: 20),),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user