Fakultas Ilmu Komputer UI

Commit 8fbf3a24 authored by Agnes Handoko's avatar Agnes Handoko
Browse files

[REFACTOR] fix padding, margin, and font size to strive consistency in UI Implementation

parent a593561c
Pipeline #41062 passed with stages
in 9 minutes and 57 seconds
import 'package:flutter/material.dart';
import 'package:ppl_disabilitas/app.dart';
//import 'package:ppl_disabilitas/page/informasi/layananDisabilitas.dart';
import 'flavor/flavor.dart';
void main() {
......
......@@ -33,21 +33,20 @@ class DetailSekolahState extends State<DetailSekolah> {
body: ListView(
children: <Widget>[
Container(
padding: EdgeInsets.all(doubleSpace),
margin: EdgeInsets.only(
top: regularSpace, bottom: regularSpace, left: regularSpace),
padding: EdgeInsets.only(top: tripleSpace, bottom: tripleSpace,right: doubleSpace, left: doubleSpace),
child: Text(widget.namaSekolah,
style: TextStyle(
fontSize: 30,
fontSize: 25,
fontWeight: FontWeight.w800,
color: Colors.black,
fontFamily: 'Muli',
fontWeight: FontWeight.w400,
)),
),
Container(
padding: EdgeInsets.all(doubleSpace),
margin:
EdgeInsets.only(bottom: regularSpace, left: regularSpace),
EdgeInsets.only(bottom: doubleSpace, left: doubleSpace, right: doubleSpace),
decoration: BoxDecoration(
border: Border.all(
width: 2, color: greenPrimary.withOpacity(0.3)),
......@@ -63,10 +62,10 @@ class DetailSekolahState extends State<DetailSekolah> {
child: Text(
"Alamat",
style: TextStyle(
fontSize: 25,
fontSize: 22,
color: greenPrimary,
fontFamily: 'Muli',
fontWeight: FontWeight.bold),
fontWeight: FontWeight.w800),
),
),
Container(
......@@ -89,10 +88,10 @@ class DetailSekolahState extends State<DetailSekolah> {
child: Text(
"Nomor Telepon",
style: TextStyle(
fontSize: 25,
fontSize: 22,
color: greenPrimary,
fontFamily: 'Muli',
fontWeight: FontWeight.bold),
fontWeight: FontWeight.w800),
),
),
Container(
......@@ -115,10 +114,10 @@ class DetailSekolahState extends State<DetailSekolah> {
child: Text(
"Website",
style: TextStyle(
fontSize: 25,
fontSize: 22,
color: greenPrimary,
fontFamily: 'Muli',
fontWeight: FontWeight.bold),
fontWeight: FontWeight.w800),
),
),
Container(
......@@ -141,10 +140,10 @@ class DetailSekolahState extends State<DetailSekolah> {
child: Text(
"Jumlah Siswa",
style: TextStyle(
fontSize: 25,
fontSize: 22,
color: greenPrimary,
fontFamily: 'Muli',
fontWeight: FontWeight.bold),
fontWeight: FontWeight.w800),
),
),
Container(
......@@ -167,10 +166,10 @@ class DetailSekolahState extends State<DetailSekolah> {
child: Text(
"Status",
style: TextStyle(
fontSize: 25,
fontSize: 22,
color: greenPrimary,
fontFamily: 'Muli',
fontWeight: FontWeight.bold),
fontWeight: FontWeight.w800),
),
),
Container(
......@@ -194,10 +193,10 @@ class DetailSekolahState extends State<DetailSekolah> {
child: Text(
"Jenis Sekolah",
style: TextStyle(
fontSize: 25,
fontSize: 22,
color: greenPrimary,
fontFamily: 'Muli',
fontWeight: FontWeight.bold),
fontWeight: FontWeight.w800),
),
),
Container(
......@@ -220,10 +219,10 @@ class DetailSekolahState extends State<DetailSekolah> {
child: Text(
"Akreditasi",
style: TextStyle(
fontSize: 25,
fontSize: 22,
color: greenPrimary,
fontFamily: 'Muli',
fontWeight: FontWeight.bold),
fontWeight: FontWeight.w800),
),
),
Container(
......
......@@ -3,6 +3,7 @@ import 'package:ppl_disabilitas/component/bisago_appbar.dart';
import 'package:ppl_disabilitas/component/bisago_drawer.dart';
import 'package:ppl_disabilitas/config/styles.dart';
import 'package:ppl_disabilitas/page/informasi/list_sekolah.dart';
import 'package:ppl_disabilitas/page/informasi/detailSekolah.dart';
class LayananDisabilitas extends StatefulWidget {
@override
......@@ -54,7 +55,7 @@ class _LayananDisabilitasState extends State<LayananDisabilitas> {
width: 2, color: greenPrimary.withOpacity(0.4))),
//splashColor: Colors.lightGreen,
onPressed: () {
/*...*/
_navigateToDetailSekolahPage(context);
},
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
......@@ -121,4 +122,17 @@ class _LayananDisabilitasState extends State<LayananDisabilitas> {
final route = MaterialPageRoute(builder: (_) => ListSekolah());
Navigator.of(context).push(route);
}
void _navigateToDetailSekolahPage(BuildContext context) {
final route = MaterialPageRoute(builder: (_) => DetailSekolah(
"Sekolah Pilar Indonesia",
"Ciangsana",
"02149305494",
"www.pilarindonesia.com",
"1000",
"Swasta",
"Inklusi",
"A"));
Navigator.of(context).push(route);
}
}
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