criada a tela attendance_list_screen.dart, about_screen.dart e main_procedures_screen.dart
This commit is contained in:
96
lib/screens/about_screen.dart
Normal file
96
lib/screens/about_screen.dart
Normal file
@@ -0,0 +1,96 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:package_info_plus/package_info_plus.dart';
|
||||
import 'package:rkm/utils/color_palette.dart';
|
||||
import 'package:rkm/utils/const_variable.dart';
|
||||
import 'package:rkm/widgets/button_default.dart';
|
||||
import 'package:rkm/widgets/text_default.dart';
|
||||
|
||||
class AboutScreen extends StatefulWidget {
|
||||
|
||||
@override
|
||||
State<AboutScreen> createState() => _AboutScreenState();
|
||||
}
|
||||
|
||||
class _AboutScreenState extends State<AboutScreen> {
|
||||
@override
|
||||
|
||||
|
||||
String version = '';
|
||||
|
||||
getVersion()async{
|
||||
await PackageInfo.fromPlatform().then((value){
|
||||
setState(() {
|
||||
version =value.version;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
double width = MediaQuery.of(context).size.width;
|
||||
|
||||
getVersion();
|
||||
|
||||
return Scaffold(
|
||||
bottomSheet: Container(
|
||||
padding: EdgeInsets.all(5),
|
||||
color: ColorPalette.appBar,
|
||||
child: Row(
|
||||
children: [
|
||||
TextDefault(text: 'www.rkmsistemas.com.br',color: ColorPalette.white,),
|
||||
Spacer(),
|
||||
ButtonDefault(
|
||||
onPressed:()=> Navigator.pop(context),
|
||||
title: 'Voltar',
|
||||
borderColor: ColorPalette.appBar,
|
||||
textColor: ColorPalette.white,
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
body: Container(
|
||||
width: double.infinity,
|
||||
height: double.infinity,
|
||||
decoration: ConstVariable().backgroundGradient,
|
||||
child: Container(
|
||||
padding: EdgeInsets.symmetric(vertical: 70),
|
||||
child: Column(
|
||||
children: [
|
||||
Image.asset('assets/images/logo.PNG',width: width*0.5,),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 10.0),
|
||||
child: TextDefault(
|
||||
text: 'HOMOLOGAÇÃO',
|
||||
color: ColorPalette.red,
|
||||
fontSize: 30,
|
||||
fontWeigth: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 5.0),
|
||||
child: TextDefault(
|
||||
text: 'Versão $version',
|
||||
color: ColorPalette.black54,
|
||||
fontSize: 30,
|
||||
fontWeigth: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 5.0),
|
||||
child: TextDefault(
|
||||
text: 'RKM Sistemas Ltda.\n\n'
|
||||
'(19) 2532-2668\n\n'
|
||||
'(19) 2532-2669',
|
||||
textAlign: TextAlign.center,
|
||||
color: ColorPalette.black54,
|
||||
fontSize: 20,
|
||||
fontWeigth: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
74
lib/screens/attendance_list_screen.dart
Normal file
74
lib/screens/attendance_list_screen.dart
Normal file
@@ -0,0 +1,74 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rkm/utils/color_palette.dart';
|
||||
import 'package:rkm/utils/const_variable.dart';
|
||||
import 'package:rkm/widgets/text_default.dart';
|
||||
import '../widgets/appbar_default.dart';
|
||||
|
||||
class AttendanceListScreen extends StatefulWidget {
|
||||
const AttendanceListScreen({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<AttendanceListScreen> createState() => _AttendanceListScreenState();
|
||||
}
|
||||
|
||||
class _AttendanceListScreenState extends State<AttendanceListScreen> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBarDefault().appbar(context, 'RKM AB - Lista Atendimentos'),
|
||||
body: Container(
|
||||
decoration: ConstVariable().backgroundGradient,
|
||||
width: double.infinity,
|
||||
height: double.infinity,
|
||||
child: ListView(
|
||||
children: [
|
||||
Container(
|
||||
padding: ConstVariable().marginHightInput,
|
||||
color: ColorPalette.white,
|
||||
child: Column(
|
||||
children: [
|
||||
TextDefault(
|
||||
text: 'Atendimentos Domiciliares: 0 | Atendimento Individuais: 0',
|
||||
fontWeigth: FontWeight.bold,
|
||||
color: ColorPalette.black54,
|
||||
fontSize: 18,
|
||||
),
|
||||
TextDefault(
|
||||
text: 'Atendimentos Odontológicos: 0 | Avaliação Elegibilidade: 0',
|
||||
fontWeigth: FontWeight.bold,
|
||||
color: ColorPalette.black54,
|
||||
fontSize: 18,
|
||||
),
|
||||
TextDefault(
|
||||
text: 'Cadastros Cidadãos Realizados / Atualizados : 0',
|
||||
fontWeigth: FontWeight.bold,
|
||||
color: ColorPalette.black54,
|
||||
fontSize: 18,
|
||||
),
|
||||
TextDefault(
|
||||
text: 'Fichas Complementares: 0 | Marcadores de Consumo : 0',
|
||||
fontWeigth: FontWeight.bold,
|
||||
color: ColorPalette.black54,
|
||||
fontSize: 18,
|
||||
),
|
||||
TextDefault(
|
||||
text: 'Procedimentos Consolidados: 0 | Procedimentos Individuais : 0',
|
||||
fontWeigth: FontWeight.bold,
|
||||
color: ColorPalette.black54,
|
||||
fontSize: 18,
|
||||
),
|
||||
TextDefault(
|
||||
text: 'Visitas Domiciliares: 0',
|
||||
fontWeigth: FontWeight.bold,
|
||||
color: ColorPalette.black54,
|
||||
fontSize: 18,
|
||||
),
|
||||
],
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,11 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rkm/utils/color_palette.dart';
|
||||
import 'package:rkm/utils/const_variable.dart';
|
||||
import 'package:rkm/widgets/icon_button_default.dart';
|
||||
import 'package:rkm/widgets/input_search_text.dart';
|
||||
import 'package:rkm/widgets/input_text.dart';
|
||||
|
||||
import '../widgets/appbar_default.dart';
|
||||
import '../widgets/item_citizen.dart';
|
||||
|
||||
class HomeScreen extends StatefulWidget {
|
||||
@@ -22,7 +24,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
double width = MediaQuery.of(context).size.width;
|
||||
double height = MediaQuery.of(context).size.height;
|
||||
return Scaffold(
|
||||
appBar: AppBar(title: Text('RKM - Inicial'),centerTitle: true),
|
||||
appBar: AppBarDefault().appbar(context, 'RKM AB - Início'),
|
||||
body: Container(
|
||||
padding: EdgeInsets.all(10),
|
||||
width: width,
|
||||
@@ -44,7 +46,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
),
|
||||
IconButtonDefault(
|
||||
icon: Icons.article,
|
||||
onPressed: (){}
|
||||
onPressed: ()=>Navigator.pushNamed(context, '/attendance_list')
|
||||
),
|
||||
IconButtonDefault(
|
||||
icon: Icons.edit_note,
|
||||
|
||||
23
lib/screens/main_procedures_screen.dart
Normal file
23
lib/screens/main_procedures_screen.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rkm/utils/const_variable.dart';
|
||||
import 'package:rkm/widgets/appbar_default.dart';
|
||||
|
||||
class MainProceduresScreen extends StatefulWidget {
|
||||
const MainProceduresScreen({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<MainProceduresScreen> createState() => _MainProceduresScreenState();
|
||||
}
|
||||
|
||||
class _MainProceduresScreenState extends State<MainProceduresScreen> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBarDefault().appbar(context, 'RKM AB - Procedimentos Iniciais'),
|
||||
body: Container(
|
||||
decoration: ConstVariable().backgroundGradient,
|
||||
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -13,6 +13,7 @@ class _RegisterCitizenScreenState extends State<RegisterCitizenScreen> {
|
||||
return Scaffold(
|
||||
body: Container(
|
||||
decoration: ConstVariable().backgroundGradient,
|
||||
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user