Skip to content

Commit 69e8515

Browse files
authored
Merge pull request #6 from MoAymanDev/master
Master
2 parents 27f548d + 000935f commit 69e8515

File tree

4 files changed

+89
-8
lines changed

4 files changed

+89
-8
lines changed

lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class HomePage extends StatelessWidget {
7070
brightness: Brightness.light,
7171
primary: Colors.blue,
7272
onPrimary: Colors.blue,
73-
primaryContainer: Color.fromARGB(255, 198, 200, 204),
73+
primaryContainer: Color.fromARGB(255, 225, 226, 230),
7474
secondaryContainer: Colors.black,
7575
secondary: Colors.blue,
7676
onSecondary: Colors.blue,

lib/views/about_view.dart

Lines changed: 85 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class _AboutViewState extends State<AboutView> {
4848
height: 5,
4949
),
5050
const Text(
51-
'version 1.0.0',
51+
'version 1.0.1',
5252
style: TextStyle(fontSize: 18),
5353
),
5454
const SizedBox(
@@ -116,9 +116,69 @@ class _AboutViewState extends State<AboutView> {
116116
],
117117
),
118118
),
119-
Divider(
120-
color: Theme.of(context).colorScheme.primaryContainer,
121-
thickness: 2,
119+
const SizedBox(
120+
height: 15,
121+
),
122+
Row(
123+
mainAxisAlignment: MainAxisAlignment.center,
124+
children: [
125+
Column(
126+
children: [
127+
Container(
128+
padding: const EdgeInsets.all(2),
129+
decoration: BoxDecoration(
130+
color:
131+
Theme.of(context).colorScheme.primaryContainer,
132+
borderRadius: BorderRadius.circular(30),
133+
),
134+
child: IconButton(
135+
onPressed: () {
136+
_launchUrl(
137+
Uri.parse('https://ko-fi.com/moaymandev'));
138+
},
139+
icon: const Icon(Icons.attach_money_rounded),
140+
tooltip: 'دعم',
141+
iconSize: 33,
142+
),
143+
),
144+
const SizedBox(
145+
height: 5,
146+
),
147+
const Text('دعم'),
148+
],
149+
),
150+
const SizedBox(
151+
width: 40,
152+
),
153+
Column(
154+
children: [
155+
Container(
156+
padding: const EdgeInsets.all(2),
157+
decoration: BoxDecoration(
158+
color:
159+
Theme.of(context).colorScheme.primaryContainer,
160+
borderRadius: BorderRadius.circular(30),
161+
),
162+
child: IconButton(
163+
onPressed: () {
164+
_launchUrl(Uri.parse(
165+
'https://github.com/moaymandev/HadithSearcher'));
166+
},
167+
icon: const Icon(Icons.code_rounded),
168+
tooltip: 'الكود',
169+
iconSize: 33,
170+
),
171+
),
172+
const SizedBox(
173+
height: 5,
174+
),
175+
const Text('الكود'),
176+
],
177+
)
178+
],
179+
),
180+
const SizedBox(
181+
height: 15,
122182
),
123183
Container(
124184
margin: const EdgeInsets.all(10),
@@ -202,7 +262,7 @@ class _AboutViewState extends State<AboutView> {
202262
child: const Row(
203263
mainAxisAlignment: MainAxisAlignment.center,
204264
children: [
205-
Text(
265+
SelectableText(
206266
207267
style: TextStyle(
208268
fontSize: 18,
@@ -219,6 +279,26 @@ class _AboutViewState extends State<AboutView> {
219279
],
220280
),
221281
),
282+
const SizedBox(
283+
height: 10,
284+
),
285+
GestureDetector(
286+
child: const Text(
287+
'سياسة الخصوصية',
288+
style: TextStyle(
289+
fontSize: 18,
290+
decoration: TextDecoration.underline,
291+
color: Colors.blue,
292+
),
293+
),
294+
onTap: () {
295+
_launchUrl(Uri.parse(
296+
'https://hadith-searcher-privacy-policy.pages.dev/'));
297+
},
298+
),
299+
const SizedBox(
300+
height: 10,
301+
),
222302
],
223303
),
224304
),

lib/views/search_view.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ class _SearchViewState extends State<SearchView> {
382382
height: 60,
383383
// Search TextField
384384
child: TextField(
385+
textInputAction: TextInputAction.search,
385386
controller: textFieldController,
386387
decoration: const InputDecoration(
387388
hintText: 'تحقق من حديث...',

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: hadithsearcher
2-
description: A new Flutter project.
2+
description: An app to search for Ahadith.
33
# The following line prevents the package from being accidentally published to
44
# pub.dev using `flutter pub publish`. This is preferred for private packages.
55
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1616
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
1717
# In Windows, build-name is used as the major, minor, and patch parts
1818
# of the product and file versions while build-number is used as the build suffix.
19-
version: 1.0.0+1
19+
version: 1.0.1
2020

2121
environment:
2222
sdk: '>=3.0.2 <4.0.0'

0 commit comments

Comments
 (0)