feito o cadastro do cidadão
This commit is contained in:
57
lib/widgets/subtitle_appbar_citizen.dart
Normal file
57
lib/widgets/subtitle_appbar_citizen.dart
Normal file
@@ -0,0 +1,57 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rkm/widgets/text_default.dart';
|
||||
import '../screens/registers_citizen/register_citizen_screen.dart';
|
||||
import '../screens/registers_citizen/register_home_screen.dart';
|
||||
import '../screens/registers_citizen/register_individual_screen.dart';
|
||||
import '../utils/color_palette.dart';
|
||||
|
||||
class SubtitleAppbarCitizen extends StatelessWidget {
|
||||
int title;
|
||||
bool edit;
|
||||
|
||||
SubtitleAppbarCitizen({
|
||||
required this.title,
|
||||
this.edit = false
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
double heigth = MediaQuery.of(context).size.height;
|
||||
double width = MediaQuery.of(context).size.width;
|
||||
|
||||
return Container(
|
||||
color: ColorPalette.white,
|
||||
width: width,
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
TextButton.icon(
|
||||
onPressed:edit? ()=> Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) => RegisterCitizenScreen(select: '',)),
|
||||
):null,
|
||||
icon: Icon(Icons.person,color: title==1?Colors.black:ColorPalette.gray,),
|
||||
label: TextDefault(text: 'Cadastro Cidadão',fontSize: 14,color: title==1?Colors.black:ColorPalette.gray,)
|
||||
),
|
||||
TextButton.icon(
|
||||
onPressed:edit? ()=> Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) => RegisterIndividualScreen()),
|
||||
):null,
|
||||
icon: Icon(Icons.assignment_outlined,color: title==2?Colors.black:ColorPalette.gray,),
|
||||
label: TextDefault(text: 'Cadastro Individual',fontSize: 14,color: title==2?Colors.black:ColorPalette.gray,)
|
||||
),
|
||||
TextButton.icon(
|
||||
onPressed:edit? ()=> Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) => RegisterHomeScreen()),
|
||||
):null,
|
||||
icon: Icon(Icons.home,color: title==3?Colors.black:ColorPalette.gray,),
|
||||
label: TextDefault(text: 'Cadastro Domiciliar',fontSize: 14,color: title==3?Colors.black:ColorPalette.gray,)
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user