Skip to content

Commit

Permalink
uPGRADE PACKAGES & CLEANUP SKIT2
Browse files Browse the repository at this point in the history
  • Loading branch information
iqfareez committed Jan 21, 2021
1 parent 1bc7e65 commit ce10962
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
9 changes: 6 additions & 3 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
import 'package:get/get.dart';
import 'package:timezone/data/latest.dart' as tz;
Expand Down Expand Up @@ -34,13 +35,14 @@ void main() async {

initGetStorage();

SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.light);

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

// ignore: must_be_immutable
class MyApp extends StatelessWidget {
var _primaryColour = Colors.teal;
final _primaryColour = Colors.teal;

@override
Widget build(BuildContext context) {
Expand All @@ -54,7 +56,8 @@ class MyApp extends StatelessWidget {
primaryColor: _primaryColour,
bottomAppBarColor: Colors.teal.shade50,
visualDensity: VisualDensity.adaptivePlatformDensity,
appBarTheme: AppBarTheme(color: _primaryColour),
appBarTheme:
AppBarTheme(color: _primaryColour, brightness: Brightness.dark),
),
darkTheme: ThemeData.dark().copyWith(
primaryColor: _primaryColour,
Expand Down
4 changes: 3 additions & 1 deletion lib/utils/isolate_handler_notification.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void schedulePrayNotification(List<dynamic> times) async {
DateTime.fromMillisecondsSinceEpoch(isyakTimeEpoch), tz.local));
}

print('Notification scheduled');
print('Notification scheduled #$i');
print('Subuh @ $subuhTimeEpoch');
print('Syuruk @ $syurukTimeEpoch');
print('Zohor @ $zuhrTimeEpoch');
Expand All @@ -113,6 +113,8 @@ void schedulePrayNotification(List<dynamic> times) async {
1, 0, 5), //2021-01-01 00:05:00.000+0800
);

print('DONE SCHEDULING NOTIFS');

killCurrentScheduleNotifications();
}

Expand Down
16 changes: 8 additions & 8 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ packages:
name: flutter_cache_manager
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.1"
flutter_isolate:
dependency: transitive
description:
Expand All @@ -159,7 +159,7 @@ packages:
name: flutter_local_notifications
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.2"
version: "3.0.3"
flutter_local_notifications_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -211,7 +211,7 @@ packages:
name: geolocator
url: "https://pub.dartlang.org"
source: hosted
version: "6.1.13"
version: "6.1.14"
geolocator_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -358,7 +358,7 @@ packages:
name: path_provider
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.24"
version: "1.6.27"
path_provider_linux:
dependency: transitive
description:
Expand All @@ -372,7 +372,7 @@ packages:
name: path_provider_macos
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.4+6"
version: "0.0.4+8"
path_provider_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -428,7 +428,7 @@ packages:
name: provider
url: "https://pub.dartlang.org"
source: hosted
version: "4.3.2+3"
version: "4.3.3"
rxdart:
dependency: "direct main"
description:
Expand Down Expand Up @@ -461,14 +461,14 @@ packages:
name: sqflite
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.2+1"
version: "1.3.2+2"
sqflite_common:
dependency: transitive
description:
name: sqflite_common
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2+1"
version: "1.0.3"
stack_trace:
dependency: transitive
description:
Expand Down

0 comments on commit ce10962

Please sign in to comment.