Skip to content

Commit

Permalink
app Work Is Done Allhamdurillah
Browse files Browse the repository at this point in the history
  • Loading branch information
MehediHasannOvi committed Mar 28, 2023
1 parent 74d84e7 commit f7ef8f0
Show file tree
Hide file tree
Showing 16 changed files with 164 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'package:get/get.dart';
import '../../../model/allahname.dart';

class AllahNameController extends GetxController {
// ignore: todo
//TODO: Implement AllahNameController

@override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'package:get/get.dart';
import 'package:hive/hive.dart';

class DailyTrackingController extends GetxController {
// ignore: todo
//TODO: Implement DailyTrackingController

final count = 0.obs;
Expand Down Expand Up @@ -128,12 +129,14 @@ class DailyTrackingController extends GetxController {
@override
void onReady() {
dailyData.put('date', now);
// ignore: todo
// TODO: implement onReady
super.onReady();
}

@override
void onInit() {
// ignore: todo
// TODO: implement onInit
hiveDetele();
super.onInit();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,15 @@ class PrayTrackerController extends GetxController {
@override
void onReady() {
namazData.put('date', now);
// ignore: todo
// TODO: implement onReady
super.onReady();
}

@override
void onInit() {
hiveDetele();
// ignore: todo
// TODO: implement onInit
super.onInit();
}
Expand Down
12 changes: 6 additions & 6 deletions lib/app/modules/PrayTracker/views/pray_tracker_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class PrayTrackerView extends GetView<PrayTrackerController> {
controller.function(value!);
},
side: MaterialStateBorderSide.resolveWith(
(states) => BorderSide(width: 1.0, color: Colors.white),
(states) => const BorderSide(width: 1.0, color: Colors.white),
),
);
},
Expand All @@ -120,7 +120,7 @@ class PrayTrackerView extends GetView<PrayTrackerController> {
},
side: MaterialStateBorderSide.resolveWith(
(states) =>
BorderSide(width: 1.0, color: Colors.white),
const BorderSide(width: 1.0, color: Colors.white),
),
);
},
Expand All @@ -145,7 +145,7 @@ class PrayTrackerView extends GetView<PrayTrackerController> {
controller.function2(value!);
},
side: MaterialStateBorderSide.resolveWith(
(states) => BorderSide(width: 1.0, color: Colors.white),
(states) => const BorderSide(width: 1.0, color: Colors.white),
),
);
},
Expand All @@ -170,7 +170,7 @@ class PrayTrackerView extends GetView<PrayTrackerController> {
controller.function3(value!);
},
side: MaterialStateBorderSide.resolveWith(
(states) => BorderSide(width: 1.0, color: Colors.white),
(states) => const BorderSide(width: 1.0, color: Colors.white),
),
);
},
Expand All @@ -195,7 +195,7 @@ class PrayTrackerView extends GetView<PrayTrackerController> {
controller.function4(value!);
},
side: MaterialStateBorderSide.resolveWith(
(states) => BorderSide(width: 1.0, color: Colors.white),
(states) => const BorderSide(width: 1.0, color: Colors.white),
),
);
},
Expand All @@ -219,7 +219,7 @@ class PrayTrackerView extends GetView<PrayTrackerController> {
controller.function5(value!);
},
side: MaterialStateBorderSide.resolveWith(
(states) => BorderSide(width: 1.0, color: Colors.white),
(states) => const BorderSide(width: 1.0, color: Colors.white),
),
);
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import 'package:get/get.dart';
import 'package:hive/hive.dart';

import '../../../../Util/app_colors.dart';
import '../../../routes/app_pages.dart';

class QuranTrackerController extends GetxController {
// ignore: todo
//TODO: Implement QuranTrackerController

TextEditingController ayatController = TextEditingController();
Expand Down Expand Up @@ -56,6 +56,7 @@ class QuranTrackerController extends GetxController {

@override
void onClose() {
// ignore: todo
// TODO: implement onClose
ayatController.clear();
paraController.clear();
Expand Down
6 changes: 3 additions & 3 deletions lib/app/modules/QuranTracker/views/quran_tracker_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,14 @@ class QuranTrackerView extends GetView<QuranTrackerController> {
);
},
),
Spacer(),
const Spacer(),

AppText(
text: "আপনার আগের পড়া...",
color: AppColors.quaternaryColor,
fontSize: 16,
),
Divider(
const Divider(
color: AppColors.quaternaryColor,
),
GetBuilder<QuranTrackerController>(
Expand All @@ -219,7 +219,7 @@ class QuranTrackerView extends GetView<QuranTrackerController> {
return Container(
height: 12.h,
width: double.infinity,
padding: EdgeInsets.all(10),
padding: const EdgeInsets.all(10),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
Expand Down
12 changes: 12 additions & 0 deletions lib/app/modules/about/bindings/about_binding.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import 'package:get/get.dart';

import '../controllers/about_controller.dart';

class AboutBinding extends Bindings {
@override
void dependencies() {
Get.lazyPut<AboutController>(
() => AboutController(),
);
}
}
23 changes: 23 additions & 0 deletions lib/app/modules/about/controllers/about_controller.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import 'package:get/get.dart';

class AboutController extends GetxController {
//TODO: Implement AboutController

final count = 0.obs;
@override
void onInit() {
super.onInit();
}

@override
void onReady() {
super.onReady();
}

@override
void onClose() {
super.onClose();
}

void increment() => count.value++;
}
85 changes: 85 additions & 0 deletions lib/app/modules/about/views/about_view.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
import 'package:flutter/material.dart';

import 'package:get/get.dart';

import '../../../../Util/App_text.dart';
import '../../../../Util/app_colors.dart';
import '../controllers/about_controller.dart';

class AboutView extends GetView<AboutController> {
const AboutView({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('About'),
centerTitle: true,
),
body: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
AppText(
text: 'Ramadan Planner',
fontSize: 16,
),
const SizedBox(height: 16.0),
AppText(
text: 'Version 1.0.0',
fontSize: 16,
),
const SizedBox(height: 16.0),
AppText(
text: 'Developed by: Mehedi Hasan Ovi',
fontSize: 16,
),
const SizedBox(height: 16.0),
AppText(text: "Email : mehedihasannovi@gmail.com"),
const SizedBox(height: 20),
const Divider(
color: AppColors.quaternaryColor,
),
AppText(
text: 'About App',
fontSize: 18,
color: AppColors.quaternaryColor,
fontWeight: FontWeight.bold,
),
const SizedBox(height: 16.0),
AppText(
fontSize: 14,
text:
"Ramadan Planner App is a mobile application designed to help Muslims keep track of their daily religious activities during the holy month of Ramadan. The app focuses on several key features to assist users in their spiritual journey:",
),
const SizedBox(height: 16.0),
AppText(
fontSize: 14,
text: "1. Quran Tracking",
),
const SizedBox(height: 14.0),
AppText(
fontSize: 14,
text: "2. Namaz Tracking",
),
const SizedBox(height: 14.0),
AppText(
fontSize: 14,
text: "3. Daily Good Deeds Suggestions",
),
const SizedBox(height: 14.0),
AppText(
fontSize: 14,
text: "4. Daily Hadith",
),
const SizedBox(height: 14.0),
AppText(
fontSize: 14,
text: "5. Quran Tracking",
),
],
),
),
);
}
}
1 change: 0 additions & 1 deletion lib/app/modules/fastscreen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../routes/app_pages.dart';
import 'home/views/home_view.dart';

class Fastpage extends StatefulWidget {
const Fastpage({super.key});
Expand Down
8 changes: 5 additions & 3 deletions lib/app/modules/home/controllers/home_controller.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
// ignore_for_file: unused_import, depend_on_referenced_packages, avoid_print

import 'dart:async';

import 'package:get/get.dart';
import 'package:hijri/hijri_calendar.dart';
import 'package:hive/hive.dart';
import 'package:flutter/material.dart';

import 'package:timezone/data/latest.dart' as tz;
import 'package:timezone/timezone.dart' as tz;
import '../../../../Util/app_colors.dart';
Expand All @@ -13,7 +16,7 @@ import '../../../data/hadis.dart';


class HomeController extends GetxController {
//TODO: Implement HomeController


final TextEditingController name = TextEditingController();
HijriCalendar currentDate = HijriCalendar.now();
Expand All @@ -36,7 +39,6 @@ class HomeController extends GetxController {

// Use the day of the year as the index for the list
int dataIndex = currentDate.hDay % hadis.length;
print(hadis.length);
return dataIndex;
}

Expand Down Expand Up @@ -88,11 +90,11 @@ class HomeController extends GetxController {
void onInit() async {


// ignore: todo
// TODO: implement onInit
if (Hive.box("user").get("name") == null) {
getusername();
} else {
print("User Name is ${Hive.box("user").get("name")}");
}


Expand Down
13 changes: 6 additions & 7 deletions lib/app/modules/home/views/home_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import 'package:sizer/sizer.dart';
import '../../../../Util/App_text.dart';
import '../../../../Util/app_colors.dart';
import '../../../../Util/main_button.dart';
import '../../../service/notification/notification.dart';
import '../../../data/dinerkaj.dart';
import '../../../data/hadis.dart';
import '../../../routes/app_pages.dart';
Expand Down Expand Up @@ -58,7 +57,7 @@ class HomeView extends GetView<HomeController> {
onPressed: () {
controller.getusername();
},
icon: Icon(
icon: const Icon(
Icons.edit,
size: 18,
)))
Expand All @@ -70,9 +69,9 @@ class HomeView extends GetView<HomeController> {
actions: [
IconButton(
onPressed: () async {

Get.toNamed(Routes.ABOUT);
},
icon: Icon(
icon: const Icon(
CupertinoIcons.heart_circle,
color: AppColors.quinaryColor,
)),
Expand Down Expand Up @@ -192,7 +191,7 @@ class HomeView extends GetView<HomeController> {
initState: (_) {},
builder: (_) {
final getpraylanght = Hive.box('daily').length;
return manuButton("নামাজ", "${getpraylanght}/6",
return manuButton("নামাজ", "$getpraylanght/6",
() => Get.toNamed(Routes.PRAY_TRACKER));
},
),
Expand All @@ -201,7 +200,7 @@ class HomeView extends GetView<HomeController> {
initState: (_) {},
builder: (_) {
final dinerkaj = Hive.box('Dtrack').length;
return manuButton("দিনের কাজ", "${dinerkaj}/9",
return manuButton("দিনের কাজ", "$dinerkaj/9",
() => Get.toNamed(Routes.DAILY_TRACKING));
},
),
Expand All @@ -210,7 +209,7 @@ class HomeView extends GetView<HomeController> {
initState: (_) {},
builder: (_) {
final quranData = Hive.box('quranData').length;
return manuButton("কোরআন", "${quranData}/3",
return manuButton("কোরআন", "$quranData/3",
() => Get.toNamed(Routes.QURAN_TRACKER));
},
),
Expand Down
Loading

0 comments on commit f7ef8f0

Please sign in to comment.