Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- import 'package:projectkos/models/EmployeeModel.dart';
- class KosView extends StatefulWidget {
- final Employee employee;
- KosView(this.employee);
- @override
- _KosViewState createState() => _KosViewState();
- }
- class _KosViewState extends State<KosView> {
- Employee employeestate;
- @override
- void initState() {
- super.initState();
- employeestate = widget.employee;
- }
- @override
- Widget build(BuildContext context) {
- return new Card(
- child: new Column(
- children: <Widget>[
- new Padding(
- padding: EdgeInsets.all(7.0),
- child: new Row(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: <Widget>[
- new Text(
- employeestate.firstName + ' ' + employeestate.lastName,
- style: new TextStyle(
- fontSize: 18.0, fontWeight: FontWeight.w300),
- textDirection: TextDirection.rtl,
- ),
- ],
- ),
- ),
- new Padding(
- padding: new EdgeInsets.all(7.0),
- child: new Row(
- children: <Widget>[
- new Padding(
- padding: new EdgeInsets.all(7.0),
- child: new Icon(Icons.monetization_on),
- ),
- new Padding(
- padding: new EdgeInsets.all(7.0),
- child: new Text(
- employeestate.salary,
- style: new TextStyle(fontSize: 18.0),
- ),
- ),
- new Padding(
- padding: new EdgeInsets.all(7.0),
- child: new Icon(Icons.face),
- ),
- new Padding(
- padding: new EdgeInsets.all(7.0),
- child: new Text(employeestate.gender,
- style: new TextStyle(fontSize: 18.0)),
- )
- ],
- ))
- ],
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement