Fakultas Ilmu Komputer UI

Commit 22c9ad1f authored by Firriyal Bin Yahya's avatar Firriyal Bin Yahya
Browse files

[CHORE] page list sekolah

parent e5b84e3e
import 'package:flutter/material.dart';
import 'package:ppl_disabilitas/page/dashboard/dashboard.dart';
import 'package:ppl_disabilitas/page/informasi/list_sekolah.dart';
//import 'package:ppl_disabilitas/page/filter & fasilitas/fasilitas.dart';
class BisaGo extends StatelessWidget {
......
......@@ -2,8 +2,10 @@ import 'package:flutter/material.dart';
import 'package:ppl_disabilitas/config/styles.dart';
class BisaGoAppBar extends StatelessWidget implements PreferredSizeWidget {
final String title;
BisaGoAppBar({this.title = 'bisaGo', Key key}) : super(key: key);
@override
final Size preferredSize = Size.fromHeight(55);
final Size preferredSize = const Size.fromHeight(55);
@override
Widget build(BuildContext context) {
return AppBar(
......@@ -15,16 +17,17 @@ class BisaGoAppBar extends StatelessWidget implements PreferredSizeWidget {
mainAxisSize: MainAxisSize.min,
children: <Widget>[
Padding(padding: EdgeInsets.all(doubleSpace),
child: Text(
"bisaGo",
style: TextStyle(
fontSize: 25,
fontFamily: 'Comfortaa',
fontWeight: FontWeight.w800),
),)
child: Text(
title,
style: TextStyle(
fontSize: 25,
fontFamily: 'Comfortaa',
fontWeight: FontWeight.w800),
),)
],
),
);
}
}
import 'package:flutter/material.dart';
import 'package:ppl_disabilitas/config/styles.dart';
class ListSekolah extends StatefulWidget {
@override
ListSekolahState createState() => ListSekolahState();
}
/// State of Pencacrian page
class ListSekolahState extends State<ListSekolah> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
elevation: 15,
key: Key("appbar-text-informasi-sekolah"),
backgroundColor: greenPrimary,
leading: IconButton(
icon: Icon(Icons.arrow_back_ios, size: 25),
key: Key('Back Icon Key'),
onPressed: () => Navigator.pop(context, 'Take me back')),
centerTitle: true,
title: Row(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: <Widget>[
Padding(padding: EdgeInsets.all(doubleSpace),
child: Text(
"Informasi Sekolah",
style: TextStyle(
fontSize: 25,
fontFamily: 'Comfortaa',
fontWeight: FontWeight.w800),
),)
],
),
),
body: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Container(
child: Text("Sekolah dengan Dukungan Disabilitas",
style: TextStyle(
fontSize: 25,
fontFamily: 'Comfortaa',
fontWeight: FontWeight.w800),
),
),
],
),
);
}
}
\ No newline at end of file
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:ppl_disabilitas/page/informasi/list_sekolah.dart';
void main(){
testWidgets("find a title app bar", (WidgetTester tester) async {
final textAppBar = Key("Informasi Sekolah");
await tester.pumpWidget(MaterialApp(home: ListSekolah()));
expect(find.byKey(textAppBar), findsOneWidget);
});
}
\ No newline at end of file
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