-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
➕ email_validator: ^2.0.1 Faq page @required annotation in launch url add SizedBox at the bottom of setting page Bring back the copyright information set addDefaultShareMenuItem = true CustomTabs set navigationBarColor to olors.tealAccent CustomTabs Tell user about copy of a response [ENV] Delete .firebase and .fvm
- Loading branch information
Showing
10 changed files
with
104 additions
and
27 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:font_awesome_flutter/font_awesome_flutter.dart'; | ||
import 'package:waktusolatmalaysia/utils/launchUrl.dart'; | ||
|
||
class FaqPage extends StatelessWidget { | ||
@override | ||
Widget build(BuildContext context) { | ||
final _faqItems = [ | ||
FaqItem( | ||
title: 'Show/Hide Imsak, Syuruk & Dhuha time', | ||
url: 'https://bit.ly/3mSUZt8'), | ||
FaqItem( | ||
title: 'How to fix wrong hijri time', | ||
url: 'https://bit.ly/mpthijrioffset') | ||
]; | ||
return Scaffold( | ||
appBar: AppBar( | ||
title: Text('FAQs'), | ||
centerTitle: true, | ||
), | ||
//TODO: Add image | ||
//https://firebasestorage.googleapis.com/v0/b/malaysia-waktu-solat.appspot.com/o/In%20app%2Fundraw_Questions_re_1fy7.png?alt=media&token=2e1ca79e-3e63-4677-8e07-7b3e7b33cae2 | ||
body: ListView.builder( | ||
itemCount: _faqItems.length, | ||
itemBuilder: (context, index) { | ||
return ListTile( | ||
title: Text(_faqItems[index].title), | ||
subtitle: Text(_faqItems[index].url.substring(8)), | ||
trailing: FaIcon( | ||
FontAwesomeIcons.externalLinkAlt, | ||
size: 18, | ||
), | ||
onTap: () { | ||
LaunchUrl.normalLaunchUrl( | ||
url: _faqItems[index].url, useCustomTabs: true); | ||
}, | ||
); | ||
}, | ||
), | ||
); | ||
} | ||
} | ||
|
||
class FaqItem { | ||
String title; | ||
|
||
String url; | ||
|
||
/// Url must have https:// at front | ||
FaqItem({@required this.title, @required this.url}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters