inserido icone android, logo,ajustada a tela home e login
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
import 'package:flutter/material.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/item_citizen.dart';
|
||||
|
||||
class HomeScreen extends StatefulWidget {
|
||||
const HomeScreen({Key? key}) : super(key: key);
|
||||
@@ -8,13 +14,62 @@ class HomeScreen extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _HomeScreenState extends State<HomeScreen> {
|
||||
|
||||
var inputSearch = TextEditingController();
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
double width = MediaQuery.of(context).size.width;
|
||||
double height = MediaQuery.of(context).size.height;
|
||||
return Scaffold(
|
||||
appBar: AppBar(title: Text('Home')),
|
||||
appBar: AppBar(title: Text('RKM - Inicial'),centerTitle: true),
|
||||
body: Container(
|
||||
child: Center(
|
||||
child: Text('home')
|
||||
padding: EdgeInsets.all(10),
|
||||
width: width,
|
||||
height: height,
|
||||
decoration: ConstVariable().backgroundGradient,
|
||||
child: Column(
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
InputSearchText(
|
||||
hint: 'Busca cidadão (Por NOME ou CNS ou PRONTUÁRIO ou DATA NASCIMENTO)',
|
||||
fontSize: 10,
|
||||
controller: inputSearch,
|
||||
width: width*0.72
|
||||
),
|
||||
IconButtonDefault(
|
||||
icon: Icons.person_add,
|
||||
onPressed: (){}
|
||||
),
|
||||
IconButtonDefault(
|
||||
icon: Icons.article,
|
||||
onPressed: (){}
|
||||
),
|
||||
IconButtonDefault(
|
||||
icon: Icons.edit_note,
|
||||
onPressed: (){}
|
||||
),
|
||||
],
|
||||
),
|
||||
Container(
|
||||
width: width,
|
||||
height: height*0.8,
|
||||
child: ListView.builder(
|
||||
itemCount: 10,
|
||||
itemBuilder: (context,index){
|
||||
return ItemCitizen(
|
||||
date: '00/00/0000',
|
||||
name: 'JOÃO DA SILVA',
|
||||
mother: 'MARIA DA SILVA',
|
||||
numberCNS: '123456789',
|
||||
numberMedicalRecord: '012345',
|
||||
onTap: ()=>Navigator.pushNamed(context, '/register_citizen'),
|
||||
);
|
||||
}
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user