Skip to content

Commit c075f94

Browse files
authored
Merge pull request #2 from Shinobi7k/master
Master
2 parents afc3f0f + 343c6b5 commit c075f94

File tree

6 files changed

+20
-29
lines changed

6 files changed

+20
-29
lines changed

lib/views/about_view.dart

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -113,28 +113,9 @@ class _AboutViewState extends State<AboutView> {
113113
],
114114
),
115115
),
116-
const SizedBox(
117-
height: 15,
118-
),
119-
Column(
120-
children: [
121-
IconButton(
122-
iconSize: 35,
123-
tooltip: 'الكود المصدري',
124-
onPressed: () async {
125-
await _launchUrl(Uri.parse(
126-
'https://github.com/Shinobi7k/HadithSearcher'));
127-
},
128-
icon: const Icon(
129-
Icons.code,
130-
),
131-
alignment: Alignment.center,
132-
),
133-
const Text('الكود المصدري'),
134-
],
135-
),
136-
const SizedBox(
137-
height: 15,
116+
Divider(
117+
color: Theme.of(context).colorScheme.primaryContainer,
118+
thickness: 2,
138119
),
139120
Container(
140121
margin: const EdgeInsets.all(10),

lib/views/favourites_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ class _FavouritesViewState extends State<FavouritesView> {
249249
'hasSharhMetadata'] ==
250250
true) {
251251
var url = Uri.parse(
252-
"https://dorar-hadith-api.cyclic.app/v1/site/sharh/${hadith['sharhMetadata']['id']}");
252+
"https://dorar-hadith-api.cyclic.cloud/v1/site/sharh/${hadith['sharhMetadata']['id']}");
253253
var response = await http
254254
.get(url)
255255
.timeout(const Duration(

lib/views/search_view.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'package:flutter/material.dart';
2+
import 'package:flutter_animate/flutter_animate.dart';
23
import 'package:hadithsearcher/db/database.dart';
34
import 'package:hadithsearcher/views/similar_hadith_view.dart';
45
import 'package:http/http.dart' as http;
@@ -179,7 +180,7 @@ class _SearchViewState extends State<SearchView> {
179180
searchBook = '96';
180181
}
181182
var url = Uri.parse(
182-
'https://dorar-hadith-api.cyclic.app/v1/site/hadith/search?value=$searchKeyword&page=$searchPagaNumber&st=$searchWay&t=$searchRange&d[]=$searchGrade&m[]=$searchMohdith&s[]=$searchBook$searchExcludedWords');
183+
'https://dorar-hadith-api.cyclic.cloud/v1/site/hadith/search?value=$searchKeyword&page=$searchPagaNumber&st=$searchWay&t=$searchRange&d[]=$searchGrade&m[]=$searchMohdith&s[]=$searchBook$searchExcludedWords');
183184
var response = await http.get(url).timeout(const Duration(seconds: 24));
184185
var decodedBody = utf8.decode(response.bodyBytes);
185186
var jsonResponse = json.decode(decodedBody);
@@ -902,7 +903,7 @@ class _SearchViewState extends State<SearchView> {
902903
],
903904
),
904905
],
905-
),
906+
).animate().fade(duration: 200.ms),
906907
),
907908
)
908909
: _isEmpty
@@ -983,7 +984,7 @@ class _SearchViewState extends State<SearchView> {
983984
'hasSharhMetadata'] ==
984985
true) {
985986
var url = Uri.parse(
986-
"https://dorar-hadith-api.cyclic.app/v1/site/sharh/${hadith['sharhMetadata']['id']}");
987+
"https://dorar-hadith-api.cyclic.cloud/v1/site/sharh/${hadith['sharhMetadata']['id']}");
987988
var response = await http
988989
.get(url)
989990
.timeout(
@@ -1187,7 +1188,7 @@ class _SearchViewState extends State<SearchView> {
11871188
),
11881189
],
11891190
),
1190-
);
1191+
).animate().fade(duration: 200.ms);
11911192
},
11921193
),
11931194
),

lib/views/similar_hadith_view.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class _SimilarHadithViewState extends State<SimilarHadithView> {
8989
}
9090
try {
9191
var url = Uri.parse(
92-
'https://dorar-hadith-api.cyclic.app/v1/site/hadith/similar/$hadithId');
92+
'https://dorar-hadith-api.cyclic.cloud/v1/site/hadith/similar/$hadithId');
9393
var response = await http.get(url).timeout(const Duration(seconds: 24));
9494
var decodedBody = utf8.decode(response.bodyBytes);
9595
var jsonResponse = json.decode(decodedBody);
@@ -266,7 +266,7 @@ class _SimilarHadithViewState extends State<SimilarHadithView> {
266266
if (hadith['hasSharhMetadata'] ==
267267
true) {
268268
var url = Uri.parse(
269-
"https://dorar-hadith-api.cyclic.app/v1/site/sharh/${hadith['sharhMetadata']['id']}");
269+
"https://dorar-hadith-api.cyclic.cloud/v1/site/sharh/${hadith['sharhMetadata']['id']}");
270270
var response = await http
271271
.get(url)
272272
.timeout(

pubspec.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@ packages:
118118
description: flutter
119119
source: sdk
120120
version: "0.0.0"
121+
flutter_animate:
122+
dependency: "direct main"
123+
description:
124+
name: flutter_animate
125+
sha256: "62f346340a96192070e31e3f2a1bd30a28530f1fe8be978821e06cd56b74d6d2"
126+
url: "https://pub.dev"
127+
source: hosted
128+
version: "4.2.0+1"
121129
flutter_launcher_icons:
122130
dependency: "direct main"
123131
description:

pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ dependencies:
4545
url_launcher: ^6.1.12
4646
in_app_update: ^4.1.4
4747
flutter_launcher_icons: ^0.13.1
48+
flutter_animate: ^4.2.0+1
4849

4950
flutter_native_splash:
5051
color: "#ffffff"

0 commit comments

Comments
 (0)