Skip to content

Commit

Permalink
huhuuhu
Browse files Browse the repository at this point in the history
  • Loading branch information
iqfareez committed Jan 21, 2021
1 parent e628c1b commit 1bc7e65
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void main() async {

initGetStorage();

Get.lazyPut<ThemeController>(() => ThemeController());
Get.lazyPut(() => ThemeController());
runApp(MyApp());
}

Expand Down
1 change: 1 addition & 0 deletions lib/views/Settings part/NotificationSettingPage.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// at the moment, this feature is not readily implemented
import 'package:app_settings/app_settings.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
Expand Down
18 changes: 8 additions & 10 deletions test/widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,24 @@
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.

import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';

import 'package:waktusolatmalaysia/main.dart';

void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
testWidgets('MPT smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(MyApp());

// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);
expect(find.text('1'), findsNothing);
// expect(find.textContaining('🇲🇾 Prayer Time'), findsOneWidget);
// expect(find.textContaining('Error'), findsNothing);

// Tap the '+' icon and trigger a frame.
await tester.tap(find.byIcon(Icons.add));
await tester.pump();
// // Tap the '+' icon and trigger a frame.
// await tester.tap(find.byIcon(Icons.add));
// await tester.pump();

// Verify that our counter has incremented.
expect(find.text('0'), findsNothing);
expect(find.text('1'), findsOneWidget);
// // Verify that our counter has incremented.
// expect(find.textContaining('Asr'), findsOneWidget);
});
}

0 comments on commit 1bc7e65

Please sign in to comment.