generated from FGA0138-MDS-Ajax/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Criação da janela para exibição das informações dos funcionários.
- Loading branch information
1 parent
3cca593
commit 3266093
Showing
3 changed files
with
178 additions
and
19 deletions.
There are no files selected for viewing
88 changes: 83 additions & 5 deletions
88
catavento/lib/screens/dashboardAdmin/components/funcionarioCard.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
catavento/lib/screens/dashboardAdmin/components/infoFuncionarios.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class Infofuncionarios extends StatelessWidget{ | ||
final String nome; | ||
final String email; | ||
final String status; | ||
final String setor; | ||
final String demanda; | ||
|
||
const Infofuncionarios({ | ||
super.key, | ||
required this.nome, | ||
required this.email, | ||
required this.status, | ||
required this.setor, | ||
required this.demanda, | ||
}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Column( | ||
mainAxisAlignment: MainAxisAlignment.start, | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
|
||
children: [ | ||
Info(texto: "Nome: ", info: nome), | ||
SizedBox(height: MediaQuery.of(context).size.height * 0.05), | ||
Info(texto: "Email: ", info: email), | ||
SizedBox(height: MediaQuery.of(context).size.height * 0.05), | ||
Info(texto: "Status: ", info: status), | ||
SizedBox(height: MediaQuery.of(context).size.height * 0.05), | ||
Info(texto: "Setor: ", info: setor), | ||
SizedBox(height: MediaQuery.of(context).size.height * 0.05), | ||
Info(texto: "Atividade em andamento: ", info: demanda), | ||
|
||
], | ||
); | ||
} | ||
} | ||
|
||
class Info extends StatelessWidget { | ||
final String texto; | ||
final String info; | ||
|
||
Info({ | ||
required this.texto, | ||
required this.info | ||
}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Row( | ||
mainAxisAlignment: MainAxisAlignment.start, | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
|
||
children: [ | ||
Text( | ||
texto, | ||
style: TextStyle( | ||
fontSize: 20, | ||
color: Colors.black, | ||
fontWeight: FontWeight.bold | ||
), | ||
), | ||
Text( | ||
info, | ||
style: TextStyle( | ||
fontSize: 20, | ||
color: Colors.black, | ||
) | ||
) | ||
], | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters