ajustado os dados do calendário;
do login com o cpf
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:line_icons/line_icons.dart';
|
||||
import 'package:rkm_educa_prof_app/componentes/text_custom.dart';
|
||||
import 'package:rkm_educa_prof_app/telas/tela_calendario.dart';
|
||||
import '../servicos/shared_preferences/shared.dart';
|
||||
import '../telas/tela_login.dart';
|
||||
import '../utils/dimensoes.dart';
|
||||
@@ -8,10 +9,10 @@ import 'item_drawer.dart';
|
||||
|
||||
class DrawerCustom extends StatelessWidget {
|
||||
|
||||
String usuario;
|
||||
List dados;
|
||||
|
||||
DrawerCustom({
|
||||
required this.usuario
|
||||
required this.dados
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -35,7 +36,7 @@ class DrawerCustom extends StatelessWidget {
|
||||
// ),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 8.0,horizontal: 40),
|
||||
child: TextCustom(text: usuario.split(" ").first,fontWeight: FontWeight.bold,size: 16.0,textAlign: TextAlign.start),
|
||||
child: TextCustom(text: dados[1].split(" ").first,fontWeight: FontWeight.bold,size: 16.0,textAlign: TextAlign.start),
|
||||
),
|
||||
Container(
|
||||
height: Dimensoes.height*0.5,
|
||||
@@ -70,8 +71,8 @@ class DrawerCustom extends StatelessWidget {
|
||||
ItemDrawer(
|
||||
icone: LineIcons.calendar,
|
||||
texto: 'CALENDÁRIO ESCOLAR',
|
||||
onPressed: (){},
|
||||
// onPressed: ()=>Navigator.push(context, MaterialPageRoute(builder: (context)=>TelaChamada(alunos: alunos,indiceAluno: indiceFilhos))),
|
||||
// onPressed: (){},
|
||||
onPressed: ()=>Navigator.push(context, MaterialPageRoute(builder: (context)=>TelaCalendario(dados: dados,))),
|
||||
),
|
||||
Container(height: 1,color: Colors.grey,margin: EdgeInsets.symmetric(horizontal: 20),),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user