Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:adaTeman/utils/utils.dart';
- import 'package:flutter/material.dart';
- import 'package:adaTeman/components/button/DialogBoxButton.dart';
- import 'package:adaTeman/statusPeminjaman/statusPeminjaman.dart';
- class KonfirmasiProposal extends StatefulWidget {
- final String category;
- bool isTerima;
- KonfirmasiProposal({
- Key key,
- this.category,
- this.isTerima = false,
- }) : super(key: key);
- @override
- _KonfirmasiProposal createState() => new _KonfirmasiProposal();
- }
- class _KonfirmasiProposal extends State<KonfirmasiProposal> {
- Widget wait;
- Widget isi;
- Widget form;
- final util = new Util();
- @override
- void initState() {
- super.initState();
- }
- @override
- Widget build(BuildContext context) {
- var height = MediaQuery.of(context).size.height;
- var width = MediaQuery.of(context).size.width;
- form = new Container(
- height: height,
- child: new Column(
- children: <Widget>[
- Expanded(
- child: new ListView(
- padding: EdgeInsets.only(
- top: 30.0,
- right: 30.0,
- left: 30.0,
- ),
- children: <Widget>[
- new Column(
- children: <Widget>[
- new Row(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: <Widget>[
- new Container(
- color: Colors.grey,
- width: 93.0,
- height: 93.0,
- ),
- new Padding(
- padding: EdgeInsets.only(left: 20.0),
- ),
- new Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: <Widget>[
- new Text(
- "BOLA FUTSAL",
- style: TextStyle(
- fontSize: 18.0,
- fontWeight: FontWeight.bold,
- ),
- ),
- new Row(
- children: <Widget>[
- new Icon(
- Icons.location_on,
- color: Colors.redAccent,
- ),
- new Text(
- "Fasilkom, UI",
- textAlign: TextAlign.right,
- style: TextStyle(
- color: Colors.redAccent,
- fontWeight: FontWeight.bold
- ),
- )
- ],
- ),
- new Divider(
- color: Colors.black,
- ),
- new FlatButton(
- padding: EdgeInsets.all(0.0),
- onPressed: () {},
- child: new Column(
- children: <Widget>[
- new Text(
- "Danang Joewono",
- style: TextStyle(
- fontSize: 16.0,
- fontWeight: FontWeight.bold,
- ),
- ),
- new Padding(
- padding: EdgeInsets.only(top: 3.0),
- ),
- new Text(
- "@DanangJoewono"
- )
- ],
- ),
- ),
- ],
- ),
- ],
- ),
- new Padding(
- padding: EdgeInsets.only(top: 5.0),
- ),
- new Divider(color: Colors.black,),
- new Container(
- padding: EdgeInsets.only(top: 20.0),
- child: new Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: <Widget>[
- new Text(
- "Tanggal mulai peminjaman",
- style: new TextStyle(
- color: Colors.grey, fontSize: 15.0),
- ),
- new Padding(padding: EdgeInsets.all(5.0)),
- new Text(
- "12/02/2018",
- style: new TextStyle(fontSize: 20.0),
- ),
- new Padding(padding: EdgeInsets.only(top: 15.0)),
- new Text(
- "Tanggal selesai peminjaman",
- style: new TextStyle(
- color: Colors.grey, fontSize: 15.0),
- ),
- new Padding(
- padding: EdgeInsets.all(5.0),
- ),
- new Text(
- "12/02/2018",
- style: new TextStyle(fontSize: 20.0),
- ),
- new Padding(
- padding: EdgeInsets.all(15.0),
- ),
- new Text(
- "Alasan peminjaman",
- style: new TextStyle(
- color: Colors.grey,
- fontSize: 15.0,
- ),
- ),
- new Padding(
- padding: EdgeInsets.all(5.0),
- ),
- new Text(
- "Aku ingin pinjem sepatu ini buat main fifa sama ivannnnnn",
- style: new TextStyle(fontSize: 20.0),
- ),
- ],
- ),
- ),
- ],
- ),
- ],
- ),
- ),
- Container(
- width: width,
- padding: EdgeInsets.only(
- left: util.fitScreenSize(width, 0.065),
- right: util.fitScreenSize(width, 0.065),
- ),
- child: DialogBoxButton(
- text: "Terima",
- color: "#E0486C",
- textColor: "#FFFFFF",
- highlightColor: "#E0486C",
- splashColor: "#E0486C",
- action: () {
- Navigator.push(
- context,
- MaterialPageRoute(
- builder: (context) => StatusPeminjaman()
- )
- );
- },
- ),
- ),
- Padding(
- padding: EdgeInsets.only(
- top: 10.0,
- ),
- ),
- Container(
- width: width,
- padding: EdgeInsets.only(
- left: util.fitScreenSize(width, 0.065),
- right: util.fitScreenSize(width, 0.065),
- bottom: util.fitScreenSize(height, 0.02)
- ),
- child: DialogBoxButton(
- text: "Tolak",
- textColor: "#E0486C",
- color: "#FFFFFF",
- action: () {
- print("Tolak");
- },
- ),
- ),
- // customColorBtn(),
- ],
- ),
- );
- return new Scaffold(
- appBar: new AppBar(
- title: new Text(
- "Konfirmasi Proposal",
- style: new TextStyle(
- color: Colors.black
- ),
- ),
- backgroundColor: Colors.white,
- leading: new IconButton(
- icon: new Icon(Icons.arrow_back),
- color: Colors.black,
- onPressed: () {
- Navigator.pop(context);
- },
- ),
- ),
- body: form,
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement