Skip to content

Commit

Permalink
🔥 Removed unused notification UI
Browse files Browse the repository at this point in the history
  • Loading branch information
iqfareez committed Jul 22, 2021
1 parent 84c88b3 commit bcafcb3
Showing 1 changed file with 1 addition and 82 deletions.
83 changes: 1 addition & 82 deletions lib/views/Settings part/NotificationSettingPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:get/get.dart';
import 'package:get_storage/get_storage.dart';
import '../../CONSTANTS.dart';
import '../../utils/cupertinoSwitchListTile.dart';
import '../../utils/navigator_pop.dart';
import '../../utils/custom_navigator_pop.dart';

class NotificationPageSetting extends StatefulWidget {
const NotificationPageSetting({Key key}) : super(key: key);
Expand All @@ -15,95 +15,16 @@ class NotificationPageSetting extends StatefulWidget {
}

class _NotificationPageSettingState extends State<NotificationPageSetting> {
var prayerNotification = [true, true, true, true, true, true, true];
bool isAnythingChanged = false; //effect the button

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Notification'),
centerTitle: true,
// actions: [
// FlatButton(
// shape: CircleBorder(side: BorderSide(color: Colors.transparent)),
// textColor: Colors.white,
// onPressed: !isAnythingChanged
// ? null
// : () {
// print('Save button clicked');
// print(prayerNotification);
// Navigator.pop(context);
// },
// child: Text(
// 'SAVE',
// ),
// )
// ],
),
body: ListView(
padding: const EdgeInsets.all(16),
children: [
//Turned of for a while
// Text('Basic'),
// Card(
// child: Column(children: [
// CupertinoSwitchListTile(
// title: Text(PrayerName.prayerName[0]),
// value: prayerNotification[0],
// onChanged: (bool value) {
// setState(() {
// isAnythingChanged = true;
// prayerNotification[0] = value;
// });
// }),
// CupertinoSwitchListTile(
// title: Text(PrayerName.prayerName[1]),
// value: prayerNotification[1],
// onChanged: (bool value) {
// setState(() {
// isAnythingChanged = true;
// prayerNotification[1] = value;
// });
// }),
// CupertinoSwitchListTile(
// title: Text(PrayerName.prayerName[2]),
// value: prayerNotification[2],
// onChanged: (bool value) {
// setState(() {
// isAnythingChanged = true;
// prayerNotification[2] = value;
// });
// }),
// CupertinoSwitchListTile(
// title: Text(PrayerName.prayerName[3]),
// value: prayerNotification[3],
// onChanged: (bool value) {
// setState(() {
// isAnythingChanged = true;
// prayerNotification[3] = value;
// });
// }),
// CupertinoSwitchListTile(
// title: Text(PrayerName.prayerName[4]),
// value: prayerNotification[4],
// onChanged: (bool value) {
// setState(() {
// isAnythingChanged = true;
// prayerNotification[4] = value;
// });
// }),
// CupertinoSwitchListTile(
// title: Text(PrayerName.prayerName[5]),
// value: prayerNotification[5],
// onChanged: (bool value) {
// setState(() {
// isAnythingChanged = true;
// prayerNotification[5] = value;
// });
// }),
// ]),
// ),
const Padding(padding: EdgeInsets.all(8.0), child: Text('Basic')),
Card(
child: ListTile(
Expand All @@ -120,7 +41,6 @@ class _NotificationPageSettingState extends State<NotificationPageSetting> {
),
const Padding(
padding: EdgeInsets.all(8.0), child: Text('Troubleshooting')),

Card(
child: Container(
padding: const EdgeInsets.symmetric(vertical: 8.0),
Expand All @@ -130,7 +50,6 @@ class _NotificationPageSettingState extends State<NotificationPageSetting> {
'Enable if you experiencing an extreme slowdown in app. Notification will schedule weekly basis. Default is OFF (monthly).'),
value: GetStorage().read(kStoredNotificationLimit),
onChanged: (value) {
// print(value);
setState(() {
GetStorage().write(kStoredNotificationLimit, value);
});
Expand Down

0 comments on commit bcafcb3

Please # to comment.