buscando logs na api e exibindo na nova tela logs
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
import 'package:educa_controle_acesso/models/aluno_model.dart';
|
||||
import 'package:educa_controle_acesso/screens/responsible_register_screen.dart';
|
||||
import 'package:educa_controle_acesso/widgets/text_custom.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import '../utils/colors.dart';
|
||||
import 'caixa_texto_container.dart';
|
||||
|
||||
class DadosAlunosContainer extends StatelessWidget {
|
||||
|
||||
|
||||
60
lib/widgets/item_log.dart
Normal file
60
lib/widgets/item_log.dart
Normal file
@@ -0,0 +1,60 @@
|
||||
import 'package:educa_controle_acesso/models/log_model.dart';
|
||||
import 'package:educa_controle_acesso/widgets/text_custom.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class ItemLog extends StatelessWidget {
|
||||
|
||||
LogModel logs;
|
||||
|
||||
ItemLog({
|
||||
required this.logs
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
|
||||
double width = MediaQuery.of(context).size.width;
|
||||
double height = MediaQuery.of(context).size.height;
|
||||
|
||||
return Container(
|
||||
padding: EdgeInsets.symmetric(horizontal: 5,vertical: 1),
|
||||
child: Row(
|
||||
children: [
|
||||
Container(
|
||||
width: width*0.05,
|
||||
child: TextCustom(text: logs.NRO_LOG.toString())
|
||||
),
|
||||
Container(
|
||||
width: width*0.08,
|
||||
child: TextCustom(text: logs.DATA)
|
||||
),
|
||||
Container(
|
||||
width: width*0.1,
|
||||
child: TextCustom(text: logs.CD_USUARIO),
|
||||
),
|
||||
Container(
|
||||
width: width*0.15,
|
||||
child:
|
||||
TextCustom(text: logs.NO_USUARIO),
|
||||
),
|
||||
Container(
|
||||
width: width*0.1,
|
||||
child:
|
||||
TextCustom(text: logs.SISTEMA),
|
||||
),
|
||||
Container(
|
||||
width: width*0.1,
|
||||
child:
|
||||
TextCustom(text: logs.CIDADE),
|
||||
),
|
||||
Container(
|
||||
width: width*0.25,
|
||||
child:
|
||||
TextCustom(text: logs.TELA),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user