61 lines
1.4 KiB
Dart
61 lines
1.4 KiB
Dart
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),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|