Fakultas Ilmu Komputer UI

Commit b3f13646 authored by Agnes Handoko's avatar Agnes Handoko
Browse files

[CHORE] add padding and fixed minor interface issue of informasi layanan disabilitas page

parents e5a40608 159f9749
Pipeline #40957 passed with stages
in 6 minutes and 18 seconds
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"google_maps_flutter","path":"D:\\\\Flutter\\\\flutter_windows_v1.9.1+hotfix.2-stable\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\google_maps_flutter-0.5.24+1\\\\","dependencies":[]},{"name":"location","path":"D:\\\\Flutter\\\\flutter_windows_v1.9.1+hotfix.2-stable\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\location-2.5.3\\\\","dependencies":[]},{"name":"path_provider","path":"D:\\\\Flutter\\\\flutter_windows_v1.9.1+hotfix.2-stable\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-1.6.5\\\\","dependencies":[]},{"name":"sqflite","path":"D:\\\\Flutter\\\\flutter_windows_v1.9.1+hotfix.2-stable\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\sqflite-1.3.0\\\\","dependencies":[]}],"android":[{"name":"flutter_plugin_android_lifecycle","path":"D:\\\\Flutter\\\\flutter_windows_v1.9.1+hotfix.2-stable\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_plugin_android_lifecycle-1.0.6\\\\","dependencies":[]},{"name":"google_maps_flutter","path":"D:\\\\Flutter\\\\flutter_windows_v1.9.1+hotfix.2-stable\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\google_maps_flutter-0.5.24+1\\\\","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"location","path":"D:\\\\Flutter\\\\flutter_windows_v1.9.1+hotfix.2-stable\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\location-2.5.3\\\\","dependencies":[]},{"name":"path_provider","path":"D:\\\\Flutter\\\\flutter_windows_v1.9.1+hotfix.2-stable\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-1.6.5\\\\","dependencies":[]},{"name":"sqflite","path":"D:\\\\Flutter\\\\flutter_windows_v1.9.1+hotfix.2-stable\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\sqflite-1.3.0\\\\","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"D:\\\\Flutter\\\\flutter_windows_v1.9.1+hotfix.2-stable\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_macos-0.0.4\\\\","dependencies":[]},{"name":"sqflite","path":"D:\\\\Flutter\\\\flutter_windows_v1.9.1+hotfix.2-stable\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\sqflite-1.3.0\\\\","dependencies":[]}],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"google_maps_flutter","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"location","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_macos"]},{"name":"path_provider_macos","dependencies":[]},{"name":"sqflite","dependencies":[]}],"date_created":"2020-04-16 14:34:00.434107","version":"1.15.17"}
\ No newline at end of file
{"_info":"// This is a generated file; do not edit or check into version control.","dependencyGraph":[{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"google_maps_flutter","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"location","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_macos"]},{"name":"path_provider_macos","dependencies":[]},{"name":"sqflite","dependencies":[]}]}
\ No newline at end of file
import 'package:flutter/material.dart';
import 'package:ppl_disabilitas/page/dashboard/dashboard.dart';
//import 'package:ppl_disabilitas/page/informasi/layananDisabilitas.dart';
//import 'package:ppl_disabilitas/page/filter & fasilitas/fasilitas.dart';
class BisaGo extends StatelessWidget {
......@@ -12,6 +13,7 @@ class BisaGo extends StatelessWidget {
backgroundColor: Colors.white,
),
home: Dashboard(),
//home: LayananDisabilitas(),
);
}
}
......@@ -6,7 +6,7 @@ const Color greenPale = Color(0xff4FBA4F);
const Color redPrimary = Color(0xffC60000);
const Color grayPrimary = Color(0xff645C5C);
const double superSmallSpace = 4.0;
const double superSmallSpace = 2.0;
const double smallSpace = 4.0;
const double regularSpace = 8.0;
const double regularBiggerSpace = 12.0;
......
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() {
ApiFlavor.flavor = BuildFlavor.production.toString();
runApp(BisaGo());
}
\ No newline at end of file
......@@ -6,6 +6,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/pencarian/pencarian.dart';
import 'package:ppl_disabilitas/page/informasi/layananDisabilitas.dart';
class Dashboard extends StatefulWidget {
DashboardState createState() => DashboardState();
......@@ -69,7 +70,7 @@ class DashboardState extends State<Dashboard> {
}
void _navigateToInformasiLayananDisabilitasPage(BuildContext context) {
final route = MaterialPageRoute(builder: (_) => Pencarian());
final route = MaterialPageRoute(builder: (_) => LayananDisabilitas());
Navigator.of(context).push(route);
}
......
......@@ -495,7 +495,7 @@ class _FasilitasState extends State<Fasilitas> {
),
),
Text(
"Kursi roda",
"Kursi Roda",
style: TextStyle(
color: Colors.black,
fontSize: 18),
......
import 'package:flutter/material.dart';
import 'package:ppl_disabilitas/component/bisago_appbar.dart';
import 'package:ppl_disabilitas/component/bisago_drawer.dart';
import 'package:ppl_disabilitas/config/styles.dart';
class LayananDisabilitas extends StatefulWidget {
@override
_LayananDisabilitasState createState() => _LayananDisabilitasState();
}
class _LayananDisabilitasState extends State<LayananDisabilitas> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: PreferredSize(
preferredSize: Size.fromHeight(55),
child: BisaGoAppBar(),
key: Key("Scaffold Text Field"),
),
drawer: BisaGoDrawer(),
body: Container(
padding: EdgeInsets.only(top: tripleSpace, right: doubleSpace, left: doubleSpace),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Container(
child: Flexible(
child: Text(
'Informasi Layanan Disabilitas',
style: TextStyle(
fontSize: 25,
fontWeight: FontWeight.w800,
color: Colors.black,
fontFamily: 'Muli',
),
),
),
),
Container(
margin: EdgeInsets.only(top: tripleSpace, bottom: doubleSpace),
decoration: BoxDecoration(boxShadow: regularShadow),
child: SizedBox(
width: double.infinity,
child: FlatButton(
color: Colors.white,
textColor: Colors.black,
disabledColor: Colors.grey,
disabledTextColor: Colors.black,
padding: EdgeInsets.all(regularBiggerSpace),
shape: RoundedRectangleBorder(
borderRadius: regularBorderRadius,
side: BorderSide(
width: 2, color: greenPrimary.withOpacity(0.4))),
//splashColor: Colors.lightGreen,
onPressed: () {
/*...*/
},
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: <Widget>[
Container(
padding: EdgeInsets.only(right: regularSpace),
child: Icon(Icons.add_box, color: greenPrimary, size: 30)),
Flexible(
child: Text(
"Registrasi Penyandang Disabilitas",
style: TextStyle(fontSize: 20),
),
),
Icon(Icons.chevron_right, color: greenPrimary, size: 30),
],
),
),
),
),
Container(
margin: EdgeInsets.only(bottom: doubleSpace),
decoration: BoxDecoration(boxShadow: regularShadow),
child: SizedBox(
width: double.infinity,
child: FlatButton(
color: Colors.white,
textColor: Colors.black,
disabledColor: Colors.grey,
disabledTextColor: Colors.black,
padding: EdgeInsets.all(regularBiggerSpace),
shape: RoundedRectangleBorder(
borderRadius: regularBorderRadius,
side: BorderSide(
width: 2, color: greenPrimary.withOpacity(0.4))),
//splashColor: Colors.lightGreen,
onPressed: () {
/*...*/
},
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: <Widget>[
Container(
padding: EdgeInsets.only(right: regularSpace),
child: Icon(Icons.info, color: greenPrimary, size: 30)),
Flexible(
child: Text(
"Informasi Sekolah dengan Dukungan Disabilitas",
style: TextStyle(fontSize: 20),
),
),
Icon(Icons.chevron_right, color: greenPrimary, size: 30),
],
),
),
),
),
],
),
),
);
}
}
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:ppl_disabilitas/page/informasi/layananDisabilitas.dart';
void main() {
Widget buildTestableWidget(Widget widget) {
// https://docs.flutter.io/flutter/widgets/MediaQuery-class.html
return MediaQuery(data: MediaQueryData(), child: MaterialApp(home: widget));
}
testWidgets('find informasi layanan disabilitas page', (WidgetTester tester) async {
// Provide the childWidget to the Container.
await tester.pumpWidget(buildTestableWidget(LayananDisabilitas()));
final scaffoldTextFieldKey = Key("Scaffold Text Field");
//positive test
//expect(find.byType(Container), findsNWidgets(4));
expect(find.byType(Column), findsOneWidget);
expect(find.byType(Text), findsNWidgets(4));
expect(find.byType(Icon), findsNWidgets(5));
expect(find.byType(Row), findsNWidgets(3));
expect(find.byType(Scaffold), findsOneWidget);
expect(find.byType(SizedBox), findsNWidgets(8));
expect(find.byType(FlatButton), findsNWidgets(2));
expect(find.byKey(scaffoldTextFieldKey), findsOneWidget);
//negative test
expect(find.byType(Flex), findsNothing);
expect(find.byType(BoxDecoration), findsNothing);
expect(find.byType(BorderSide), findsNothing);
expect(find.byType(TextStyle), findsNothing);
expect(find.text('regtrs pnydng disabilts'), findsNothing);
expect(find.text('informs pyndg disable'), findsNothing);
expect(find.text('informasshi sklh dngn dkgn disable'), findsNothing);
});
}
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