Skip to content

Commit 98a35d7

Browse files
committed
version: 0.0.7
1 parent 721fb3a commit 98a35d7

File tree

9 files changed

+20
-40
lines changed

9 files changed

+20
-40
lines changed

.flutter-plugins

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# This is a generated file; do not edit or check into version control.
2-
fluttertoast=/Users/hawazenmahmood/.pub-cache/hosted/pub.dev/fluttertoast-8.2.10/
32
path_provider=/Users/hawazenmahmood/.pub-cache/hosted/pub.dev/path_provider-2.1.5/
43
path_provider_android=/Users/hawazenmahmood/.pub-cache/hosted/pub.dev/path_provider_android-2.2.15/
54
path_provider_foundation=/Users/hawazenmahmood/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.1/

.flutter-plugins-dependencies

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"fluttertoast","path":"/Users/hawazenmahmood/.pub-cache/hosted/pub.dev/fluttertoast-8.2.10/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/hawazenmahmood/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.1/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"android":[{"name":"fluttertoast","path":"/Users/hawazenmahmood/.pub-cache/hosted/pub.dev/fluttertoast-8.2.10/","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"/Users/hawazenmahmood/.pub-cache/hosted/pub.dev/path_provider_android-2.2.15/","native_build":true,"dependencies":[]}],"macos":[{"name":"path_provider_foundation","path":"/Users/hawazenmahmood/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.1/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/hawazenmahmood/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"/Users/hawazenmahmood/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/","native_build":false,"dependencies":[]}],"web":[{"name":"fluttertoast","path":"/Users/hawazenmahmood/.pub-cache/hosted/pub.dev/fluttertoast-8.2.10/","dependencies":[]}]},"dependencyGraph":[{"name":"fluttertoast","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2025-01-19 11:31:30.362410","version":"3.27.2","swift_package_manager_enabled":false}
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider_foundation","path":"/Users/hawazenmahmood/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.1/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"android":[{"name":"path_provider_android","path":"/Users/hawazenmahmood/.pub-cache/hosted/pub.dev/path_provider_android-2.2.15/","native_build":true,"dependencies":[]}],"macos":[{"name":"path_provider_foundation","path":"/Users/hawazenmahmood/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.1/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/hawazenmahmood/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"/Users/hawazenmahmood/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/","native_build":false,"dependencies":[]}],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2025-01-19 14:13:56.959611","version":"3.27.2","swift_package_manager_enabled":false}

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.0.7
2+
3+
* **remove collection package.**
4+
* **add getter to find out which font has been selected [currentFontsSelected].**
5+
16
## 0.0.6
27

38
* **make collection package: ^1.18.0.**

android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java

-5
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515
public final class GeneratedPluginRegistrant {
1616
private static final String TAG = "GeneratedPluginRegistrant";
1717
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
18-
try {
19-
flutterEngine.getPlugins().add(new io.github.ponnamkarthik.toast.fluttertoast.FlutterToastPlugin());
20-
} catch (Exception e) {
21-
Log.e(TAG, "Error registering plugin fluttertoast, io.github.ponnamkarthik.toast.fluttertoast.FlutterToastPlugin", e);
22-
}
2318
try {
2419
flutterEngine.getPlugins().add(new io.flutter.plugins.pathprovider.PathProviderPlugin());
2520
} catch (Exception e) {

example/pubspec.lock

+1-14
Original file line numberDiff line numberDiff line change
@@ -99,19 +99,6 @@ packages:
9999
description: flutter
100100
source: sdk
101101
version: "0.0.0"
102-
flutter_web_plugins:
103-
dependency: transitive
104-
description: flutter
105-
source: sdk
106-
version: "0.0.0"
107-
fluttertoast:
108-
dependency: transitive
109-
description:
110-
name: fluttertoast
111-
sha256: "24467dc20bbe49fd63e57d8e190798c4d22cbbdac30e54209d153a15273721d1"
112-
url: "https://pub.dev"
113-
source: hosted
114-
version: "8.2.10"
115102
get:
116103
dependency: "direct main"
117104
description:
@@ -302,7 +289,7 @@ packages:
302289
path: ".."
303290
relative: true
304291
source: path
305-
version: "0.0.4"
292+
version: "0.0.7"
306293
sky_engine:
307294
dependency: transitive
308295
description: flutter

lib/core/utils/toast_utils.dart

+4-12
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
part of '../../presentation/pages/quran_library_screen.dart';
22

33
class ToastUtils {
4-
Future<bool?> showToast(String msg,
5-
{ToastGravity? gravity, Toast? toastLength}) =>
6-
Fluttertoast.showToast(
7-
msg: msg,
8-
toastLength: toastLength ?? Toast.LENGTH_LONG,
9-
gravity: gravity ?? ToastGravity.BOTTOM,
10-
timeInSecForIosWeb: 1,
11-
backgroundColor: const Color(0xffe8decb),
12-
textColor: Colors.black,
13-
fontSize: 16.0);
14-
15-
Future<bool?> hideToast() => Fluttertoast.cancel();
4+
SnackbarController showToast(String msg) => Get.showSnackbar(GetSnackBar(
5+
message: msg,
6+
backgroundColor: const Color(0xffe8decb),
7+
));
168

179
///Singleton factory
1810
static final ToastUtils _instance = ToastUtils._internal();

lib/flutter_quran_utils.dart

+6-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class QuranLibrary {
206206
/// and pass the language code to translate the number if you want,
207207
/// the default language code is 'ar' [languageCode]
208208
/// and style [DownloadFontsDialogStyle] is optional.
209-
void getFontsDownloadDialog(
209+
Widget getFontsDownloadDialog(
210210
DownloadFontsDialogStyle? downloadFontsDialogStyle,
211211
String? languageCode) =>
212212
FontsDownloadDialog(
@@ -244,6 +244,11 @@ class QuranLibrary {
244244
bool get isFontsDownloaded =>
245245
GetStorage().read(StorageConstants().isDownloadedCodeV2Fonts) ?? false;
246246

247+
/// لمعرفة الخط الذي تم تحديده، ما عليك سوى إستدعاء [currentFontsSelected]
248+
///
249+
/// To find out which font has been selected, just call [currentFontsSelected]
250+
bool get currentFontsSelected => quranCtrl.state.fontsSelected.value;
251+
247252
/// يقوم بتعيين علامة مرجعية باستخدام [ayahId] و[page] و[bookmarkId] المحددة.
248253
///
249254
/// [ayahId] هو معرّف الآية التي سيتم حفظها.

lib/presentation/pages/quran_library_screen.dart

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import 'dart:developer';
33
import 'package:flutter/material.dart';
44
import 'package:flutter/services.dart';
55
import 'package:flutter_svg/svg.dart';
6-
import 'package:fluttertoast/fluttertoast.dart';
76
import 'package:get/get.dart';
87
import 'package:quran_library/core/extensions/convert_number_extension.dart';
98
import 'package:quran_library/core/extensions/extensions.dart';

pubspec.yaml

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: quran_library
22
description: "A Quran Package you can put in your app and it will work without the need for any other resources."
3-
version: 0.0.6
3+
version: 0.0.7
44
homepage: https://github.com/alheekmahlib/quran_library
55

66
environment:
@@ -15,20 +15,18 @@ dependencies:
1515
# state management
1616
get: ^4.6.6
1717

18-
1918
# local storage
2019
get_storage: ^2.1.1
2120

2221
#UI
23-
fluttertoast: ^8.2.10
2422
flutter_svg: ^2.0.17
2523

2624
#Tools
2725
intl: ^0.19.0
2826
archive: ^4.0.2
2927
http: ^1.2.2
3028
path_provider: ^2.1.5
31-
collection: ^1.18.0
29+
3230

3331
# This package supports all platforms listed below.
3432
# But note that it works and fits on mobile size devices
@@ -38,7 +36,7 @@ platforms:
3836
ios:
3937
linux:
4038
macos:
41-
web:
39+
# web:
4240
windows:
4341

4442
dev_dependencies:

0 commit comments

Comments
 (0)