criada as telas tela_avisos.dart, tela_detalhes_avisos.dart e tela_contatos.dart
This commit is contained in:
73
lib/componentes/item_avisos.dart
Normal file
73
lib/componentes/item_avisos.dart
Normal file
@@ -0,0 +1,73 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rkm_educa_app/componentes/text_custom.dart';
|
||||
import '../utils/cores.dart';
|
||||
|
||||
class ItemAvisos extends StatelessWidget {
|
||||
|
||||
String data;
|
||||
String aviso;
|
||||
bool naovisto;
|
||||
var onTap;
|
||||
|
||||
ItemAvisos({
|
||||
required this.data,
|
||||
required this.aviso,
|
||||
required this.naovisto,
|
||||
required this.onTap
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
double height = MediaQuery.of(context).size.height;
|
||||
double width = MediaQuery.of(context).size.width;
|
||||
|
||||
return GestureDetector(
|
||||
onTap: onTap,
|
||||
child: Container(
|
||||
color: PaletaCores.branco,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 20.0,vertical: 5),
|
||||
child: Column(
|
||||
children: [
|
||||
Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
Container(
|
||||
width: width*0.8,
|
||||
height: 65,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 20.0),
|
||||
child: Column(
|
||||
children: [
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(vertical: 5),
|
||||
child: Row(
|
||||
children: [
|
||||
TextCustom(text: 'Data',size: 14.0,fontWeight: FontWeight.bold),
|
||||
SizedBox(width: 10,),
|
||||
TextCustom(text: data,size: 14.0,fontWeight: naovisto?FontWeight.bold:FontWeight.normal,color: naovisto?PaletaCores.cinzaEscuro:PaletaCores.cinzaClaro,),
|
||||
],
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(vertical: 5),
|
||||
child: Row(
|
||||
children: [
|
||||
TextCustom(text: 'Aviso',size: 14.0,fontWeight: FontWeight.bold),
|
||||
SizedBox(width: 10,),
|
||||
TextCustom(text: aviso,fontWeight: naovisto?FontWeight.bold:FontWeight.normal,color: naovisto?PaletaCores.cinzaEscuro:PaletaCores.cinzaClaro,),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
naovisto?CircleAvatar(backgroundColor: PaletaCores.notificacao,radius: 6,):Container()
|
||||
],
|
||||
),
|
||||
Container(width: double.infinity,height: 2,color: PaletaCores.divider,)
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user