Fakultas Ilmu Komputer UI

Commit 7478da25 authored by Adzkia Aisyah Afrah Hardian's avatar Adzkia Aisyah Afrah Hardian
Browse files

[GREEN] implement school detail page

parent 1dc7a119
Pipeline #41035 passed with stages
in 12 minutes and 24 seconds
import 'dart:async';
import 'package:location/location.dart';
import 'package:flutter/material.dart';
import 'package:ppl_disabilitas/component/bisago_drawer.dart';
import 'package:ppl_disabilitas/component/informasi_sekolah_appbar.dart';
......@@ -32,6 +30,219 @@ class DetailSekolahState extends State<DetailSekolah> {
preferredSize: Size.fromHeight(55),
child: InformasiSekolahAppBar(),
),
body: ListView(
children: <Widget>[
Container(
padding: EdgeInsets.all(doubleSpace),
margin: EdgeInsets.only(
top: regularSpace, bottom: regularSpace, left: regularSpace),
child: Text(widget.namaSekolah,
style: TextStyle(
fontSize: 30,
color: Colors.black,
fontFamily: 'Muli',
fontWeight: FontWeight.w400,
)),
),
Container(
padding: EdgeInsets.all(doubleSpace),
margin:
EdgeInsets.only(bottom: regularSpace, left: regularSpace),
decoration: BoxDecoration(
border: Border.all(
width: 2, color: greenPrimary.withOpacity(0.3)),
borderRadius: regularBorderRadius,
color: Colors.white,
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Container(
margin: EdgeInsets.only(
bottom: regularSpace),
child: Text(
"Alamat",
style: TextStyle(
fontSize: 25,
color: greenPrimary,
fontFamily: 'Muli',
fontWeight: FontWeight.bold),
),
),
Container(
margin: EdgeInsets.only(bottom: doubleSpace),
child: Text(
widget.alamat,
style: TextStyle(
fontSize: 20,
color: Colors.black,
fontFamily: 'Muli'),
),
),
Divider(
color: greenPrimary,
thickness: 1,
),
Container(
margin: EdgeInsets.only(
bottom: regularSpace, top: regularSpace),
child: Text(
"Nomor Telepon",
style: TextStyle(
fontSize: 25,
color: greenPrimary,
fontFamily: 'Muli',
fontWeight: FontWeight.bold),
),
),
Container(
margin: EdgeInsets.only(bottom: doubleSpace),
child: Text(
widget.nomerTelpon,
style: TextStyle(
fontSize: 20,
color: Colors.black,
fontFamily: 'Muli'),
),
),
Divider(
color: greenPrimary,
thickness: 1,
),
Container(
margin: EdgeInsets.only(
bottom: regularSpace, top: regularSpace),
child: Text(
"Website",
style: TextStyle(
fontSize: 25,
color: greenPrimary,
fontFamily: 'Muli',
fontWeight: FontWeight.bold),
),
),
Container(
margin: EdgeInsets.only(bottom: doubleSpace),
child: Text(
widget.website,
style: TextStyle(
fontSize: 20,
color: Colors.black,
fontFamily: 'Muli'),
),
),
Divider(
color: greenPrimary,
thickness: 1,
),
Container(
margin: EdgeInsets.only(
bottom: regularSpace, top: regularSpace),
child: Text(
"Jumlah Siswa",
style: TextStyle(
fontSize: 25,
color: greenPrimary,
fontFamily: 'Muli',
fontWeight: FontWeight.bold),
),
),
Container(
margin: EdgeInsets.only(bottom: doubleSpace),
child: Text(
widget.jumlahSiswa,
style: TextStyle(
fontSize: 20,
color: Colors.black,
fontFamily: 'Muli'),
),
),
Divider(
color: greenPrimary,
thickness: 1,
),
Container(
margin: EdgeInsets.only(
bottom: regularSpace, top: regularSpace),
child: Text(
"Status",
style: TextStyle(
fontSize: 25,
color: greenPrimary,
fontFamily: 'Muli',
fontWeight: FontWeight.bold),
),
),
Container(
margin: EdgeInsets.only(bottom: doubleSpace),
child: Text(
widget.status,
style: TextStyle(
fontSize: 20,
color: Colors.black,
fontFamily: 'Muli'),
),
),
Divider(
color: greenPrimary,
thickness: 1,
),
Container(
margin: EdgeInsets.only(
bottom: regularSpace, top: regularSpace),
child: Text(
"Jenis Sekolah",
style: TextStyle(
fontSize: 25,
color: greenPrimary,
fontFamily: 'Muli',
fontWeight: FontWeight.bold),
),
),
Container(
margin: EdgeInsets.only(bottom: doubleSpace),
child: Text(
widget.jenisSekolah,
style: TextStyle(
fontSize: 20,
color: Colors.black,
fontFamily: 'Muli'),
),
),
Divider(
color: greenPrimary,
thickness: 1,
),
Container(
margin: EdgeInsets.only(
bottom: regularSpace, top: regularSpace),
child: Text(
"Akreditasi",
style: TextStyle(
fontSize: 25,
color: greenPrimary,
fontFamily: 'Muli',
fontWeight: FontWeight.bold),
),
),
Container(
margin: EdgeInsets.only(bottom: smallSpace),
child: Text(
widget.akreditasi,
style: TextStyle(
fontSize: 20,
color: Colors.black,
fontFamily: 'Muli'),
),
),
],
),
)
],
)
);
}
}
}
\ No newline at end of file
......@@ -8,7 +8,6 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:ppl_disabilitas/page/filter_fasilitas/fasilitas.dart';
import 'package:ppl_disabilitas/page/informasi/detailSekolah.dart';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment