code cleaning and formating.

development
Sikander Saleem 5 years ago
parent ac563c7f71
commit 0502e8ce7d

@ -6,7 +6,9 @@ import 'api_client.dart';
class AdminConfigurationApiClient {
static final AdminConfigurationApiClient _instance = AdminConfigurationApiClient._internal();
AdminConfigurationApiClient._internal();
factory AdminConfigurationApiClient() => _instance;
Future<GeneralResponseModel> addDiscussion(String discussionText, String ayaTangheemTypeId) async {

@ -49,7 +49,9 @@ APIException _throwAPIException(Response response) {
class ApiClient {
static final ApiClient _instance = ApiClient._internal();
ApiClient._internal();
factory ApiClient() => _instance;
Future<U> postJsonForObject<T, U>(FactoryConstructor<U> factoryConstructor, String url, T jsonObject,

@ -1,10 +1,13 @@
import 'package:tangheem/classes/consts.dart';
import 'package:tangheem/models/authentication_user_model.dart';
import 'api_client.dart';
class AuthenticationApiClient {
static final AuthenticationApiClient _instance = AuthenticationApiClient._internal();
AuthenticationApiClient._internal();
factory AuthenticationApiClient() => _instance;
Future<AuthenticationUserModel> authenticateUser(String email, String password) async {

@ -1,5 +1,7 @@
import 'dart:async';
import 'package:tangheem/classes/consts.dart';
import 'package:tangheem/models/aya_model.dart';
import 'package:tangheem/models/aya_tangheem_property.dart';
import 'package:tangheem/models/aya_tangheem_type.dart';
import 'package:tangheem/models/aya_tangheem_type_mapped.dart';
@ -10,15 +12,16 @@ import 'package:tangheem/models/general_response_model.dart';
import 'package:tangheem/models/member_model.dart';
import 'package:tangheem/models/navigation_model.dart';
import 'package:tangheem/models/quick_links_model.dart';
import 'package:tangheem/models/surah_model.dart';
import 'package:tangheem/models/tangheem_type_model.dart';
import 'api_client.dart';
import 'package:tangheem/classes/consts.dart';
import 'package:tangheem/models/aya_model.dart';
import 'package:tangheem/models/surah_model.dart';
class TangheemUserApiClient {
static final TangheemUserApiClient _instance = TangheemUserApiClient._internal();
TangheemUserApiClient._internal();
factory TangheemUserApiClient() => _instance;
Future<SurahModel> getSurahs() async {

@ -1,11 +1,14 @@
import 'package:tangheem/classes/consts.dart';
import 'package:tangheem/models/country_model.dart';
import 'package:tangheem/models/general_response_model.dart';
import 'api_client.dart';
class UserApiClient {
static final UserApiClient _instance = UserApiClient._internal();
UserApiClient._internal();
factory UserApiClient() => _instance;
Future<GeneralResponseModel> registerUser(

@ -1,34 +1,45 @@
import 'package:tangheem/models/authentication_user_model.dart';
import 'package:tangheem/models/content_info_model.dart';
import 'package:tangheem/models/navigation_model.dart';
import 'package:tangheem/models/surah_model.dart';
import 'package:tangheem/models/authentication_user_model.dart';
class AppState {
static final AppState _instance = AppState._internal();
AppState._internal();
factory AppState() => _instance;
SurahModel _surahModel;
SurahModel get getSurahModel => _surahModel;
void setSurahModel(SurahModel _surahModel) {
this._surahModel = _surahModel;
}
ContentInfoDataModel _copyRight;
ContentInfoDataModel get getContentInfoModel => _copyRight;
void setContentInfoModel(ContentInfoDataModel _copyRight) {
this._copyRight = _copyRight;
}
AuthenticationUserModel _authenticationUser;
bool get isUserLogin => _authenticationUser != null;
String get token => _authenticationUser?.result?.data?.token;
void setAuthenticationModel(AuthenticationUserModel _authenticationUser) {
this._authenticationUser = _authenticationUser;
}
NavigationModel _navigationModel;
NavigationModel get getNavigationModel => _navigationModel;
void setNavigationModel(NavigationModel _navigationModel) {
this._navigationModel = _navigationModel;
}

@ -2,11 +2,14 @@ import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:tangheem/exceptions/api_exception.dart';
import 'package:tangheem/ui/dialogs/loading_dialog.dart';
import 'colors.dart';
class Utils {
static bool _isLoadingVisible = false;
static bool get isLoading => _isLoadingVisible;
static void showToast(String message) {
Fluttertoast.showToast(
msg: message, toastLength: Toast.LENGTH_SHORT, gravity: ToastGravity.BOTTOM, timeInSecForIosWeb: 1, backgroundColor: Colors.black54, textColor: Colors.white, fontSize: 16.0);

@ -1,4 +1,5 @@
import 'dart:convert';
import 'package:tangheem/api/api_client.dart';
class APIException implements Exception {

@ -7,14 +7,15 @@ import 'package:tangheem/ui/screens/contact_us_screen.dart';
import 'package:tangheem/ui/screens/content_info_screen.dart';
import 'package:tangheem/ui/screens/member_screen.dart';
import 'package:tangheem/ui/screens/pdf_viewer_screen.dart';
import 'classes/colors.dart';
import 'ui/common_appbar.dart';
import 'ui/screens/forgot_password_screen.dart';
import 'ui/screens/home_screen.dart';
import 'ui/screens/login_screen.dart';
import 'ui/screens/registration_screen.dart';
import 'ui/screens/quran_screen.dart';
import 'ui/screens/registration_screen.dart';
import 'ui/screens/tangheem_detail_screen.dart';
import 'classes/colors.dart';
import 'ui/screens/tangheem_screen.dart';
void main() {

@ -4,8 +4,7 @@ class AyaTangheemProperty {
String message;
List<AyaTangheemPropertyData> data;
AyaTangheemProperty(
{this.totalItemsCount, this.statusCode, this.message, this.data});
AyaTangheemProperty({this.totalItemsCount, this.statusCode, this.message, this.data});
AyaTangheemProperty.fromJson(Map<String, dynamic> json) {
totalItemsCount = json['totalItemsCount'];
@ -47,17 +46,17 @@ class AyaTangheemPropertyData {
AyaTangheemPropertyData(
{this.ayaTangheemTypePropertyId,
this.ayaTangheemTypeId,
this.tangheemTypePropertyId,
this.propertyValue,
this.surahNo,
this.ayaNo,
this.ayaText,
this.propertyText,
this.tangheemTypeName,
this.tangheemTypeId,
this.isInsideTable,
this.orderNo});
this.ayaTangheemTypeId,
this.tangheemTypePropertyId,
this.propertyValue,
this.surahNo,
this.ayaNo,
this.ayaText,
this.propertyText,
this.tangheemTypeName,
this.tangheemTypeId,
this.isInsideTable,
this.orderNo});
AyaTangheemPropertyData.fromJson(Map<String, dynamic> json) {
ayaTangheemTypePropertyId = json['ayaTangheemTypePropertyId'];

@ -4,8 +4,7 @@ class ContentInfoModel {
String message;
List<ContentInfoDataModel> data;
ContentInfoModel(
{this.totalItemsCount, this.statusCode, this.message, this.data});
ContentInfoModel({this.totalItemsCount, this.statusCode, this.message, this.data});
ContentInfoModel.fromJson(Map<String, dynamic> json) {
totalItemsCount = json['totalItemsCount'];
@ -40,14 +39,7 @@ class ContentInfoDataModel {
String fileName;
String exposeFilePath;
ContentInfoDataModel(
{this.contentInfoId,
this.contentTypeId,
this.content,
this.contentTypeNameEn,
this.contentTypeNameAr,
this.fileName,
this.exposeFilePath});
ContentInfoDataModel({this.contentInfoId, this.contentTypeId, this.content, this.contentTypeNameEn, this.contentTypeNameAr, this.fileName, this.exposeFilePath});
ContentInfoDataModel.fromJson(Map<String, dynamic> json) {
contentInfoId = json['contentInfoId'];

@ -4,8 +4,7 @@ class CountryModel {
String message;
List<CountryModelData> data;
CountryModel(
{this.totalItemsCount, this.statusCode, this.message, this.data});
CountryModel({this.totalItemsCount, this.statusCode, this.message, this.data});
CountryModel.fromJson(Map<String, dynamic> json) {
totalItemsCount = json['totalItemsCount'];
@ -38,12 +37,7 @@ class CountryModelData {
String countryNameAr;
String countryFlag;
CountryModelData(
{this.countryId,
this.countryCode,
this.countryNameEn,
this.countryNameAr,
this.countryFlag});
CountryModelData({this.countryId, this.countryCode, this.countryNameEn, this.countryNameAr, this.countryFlag});
CountryModelData.fromJson(Map<String, dynamic> json) {
countryId = json['countryId'];

@ -4,8 +4,7 @@ class DiscussionModel {
String message;
List<DiscussionModelData> data;
DiscussionModel(
{this.totalItemsCount, this.statusCode, this.message, this.data});
DiscussionModel({this.totalItemsCount, this.statusCode, this.message, this.data});
DiscussionModel.fromJson(Map<String, dynamic> json) {
totalItemsCount = json['totalItemsCount'];
@ -48,18 +47,18 @@ class DiscussionModelData {
DiscussionModelData(
{this.discussionId,
this.discussionText,
this.ayaTangheemTypeId,
this.statusId,
this.status,
this.isResponse,
this.responseId,
this.userName,
this.ayaText,
this.highlightText,
this.adminResponse,
this.adminDiscussionId,
this.date});
this.discussionText,
this.ayaTangheemTypeId,
this.statusId,
this.status,
this.isResponse,
this.responseId,
this.userName,
this.ayaText,
this.highlightText,
this.adminResponse,
this.adminDiscussionId,
this.date});
DiscussionModelData.fromJson(Map<String, dynamic> json) {
discussionId = json['discussionId'];

@ -38,13 +38,7 @@ class MemberDataModel {
String picture;
int orderNo;
MemberDataModel(
{this.committeeId,
this.firstName,
this.lastName,
this.description,
this.picture,
this.orderNo});
MemberDataModel({this.committeeId, this.firstName, this.lastName, this.description, this.picture, this.orderNo});
MemberDataModel.fromJson(Map<String, dynamic> json) {
committeeId = json['committeeId'];

@ -4,8 +4,7 @@ class NavigationModel {
String message;
List<NavigationDataModel> data;
NavigationModel(
{this.totalItemsCount, this.statusCode, this.message, this.data});
NavigationModel({this.totalItemsCount, this.statusCode, this.message, this.data});
NavigationModel.fromJson(Map<String, dynamic> json) {
totalItemsCount = json['totalItemsCount'];
@ -44,16 +43,7 @@ class NavigationDataModel {
int roleId;
NavigationDataModel(
{this.navigationId,
this.navigationText,
this.navigationUrl,
this.mobileNavigationUrl,
this.categoryName,
this.fontIcon,
this.mobileFontIcon,
this.parentId,
this.orderNo,
this.roleId});
{this.navigationId, this.navigationText, this.navigationUrl, this.mobileNavigationUrl, this.categoryName, this.fontIcon, this.mobileFontIcon, this.parentId, this.orderNo, this.roleId});
NavigationDataModel.fromJson(Map<String, dynamic> json) {
navigationId = json['navigationId'];

@ -40,15 +40,7 @@ class QuickLinksData {
String fileName;
String exposeFilePath;
QuickLinksData(
{this.quickLinksId,
this.displayText,
this.description,
this.imageUrl,
this.position,
this.orderNo,
this.fileName,
this.exposeFilePath});
QuickLinksData({this.quickLinksId, this.displayText, this.description, this.imageUrl, this.position, this.orderNo, this.fileName, this.exposeFilePath});
QuickLinksData.fromJson(Map<String, dynamic> json) {
quickLinksId = json['quickLinksId'];

@ -42,17 +42,7 @@ class SurahModelData {
int startPageNo;
int endPageNo;
SurahModelData(
{this.id,
this.surahID,
this.nameAR,
this.nameEN,
this.numberOfAyahs,
this.englishNameTranslation,
this.revelationID,
this.revelationType,
this.startPageNo,
this.endPageNo});
SurahModelData({this.id, this.surahID, this.nameAR, this.nameEN, this.numberOfAyahs, this.englishNameTranslation, this.revelationID, this.revelationType, this.startPageNo, this.endPageNo});
SurahModelData.fromJson(Map<String, dynamic> json) {
id = json['id'];

@ -4,8 +4,7 @@ class TangheemType {
String message;
List<TangheemTypeData> data;
TangheemType(
{this.totalItemsCount, this.statusCode, this.message, this.data});
TangheemType({this.totalItemsCount, this.statusCode, this.message, this.data});
TangheemType.fromJson(Map<String, dynamic> json) {
totalItemsCount = json['totalItemsCount'];

@ -6,6 +6,7 @@ import 'package:tangheem/widgets/common_textfield_widget.dart';
class CountrySelectionBottomSheet extends StatefulWidget {
final List<CountryModelData> countryList;
final Function(CountryModelData) onSelectCountry;
CountrySelectionBottomSheet({Key key, this.countryList, this.onSelectCountry}) : super(key: key);
@override

@ -10,10 +10,8 @@ import 'package:tangheem/models/content_info_model.dart';
import 'package:tangheem/models/navigation_model.dart';
import 'package:tangheem/models/quick_links_model.dart';
import 'package:tangheem/ui/screens/bookmark_screen.dart';
import 'package:tangheem/ui/screens/contact_us_screen.dart';
import 'package:tangheem/ui/screens/content_info_screen.dart';
import 'package:tangheem/ui/screens/login_screen.dart';
import 'package:tangheem/ui/screens/quran_screen.dart';
import 'package:url_launcher/url_launcher.dart';
class CommonAppbar extends StatefulWidget {
@ -78,7 +76,7 @@ class _CommonAppbarState extends State<CommonAppbar> {
if (widget.showDrawer) {
try {
quickLinks = (await TangheemUserApiClient().quickLinks())?.data ?? [];
quickLinks = quickLinks.where((element) => element.position=="down").toList();
quickLinks = quickLinks.where((element) => element.position == "down").toList();
quickLinks.sort((a, b) => a.orderNo.compareTo(b.orderNo));
} catch (ex) {}
setState(() {});
@ -87,6 +85,7 @@ class _CommonAppbarState extends State<CommonAppbar> {
int fontSize;
SharedPreferences prefs;
void getPrefs() async {
prefs = await SharedPreferences.getInstance();
fontSize = prefs.getInt(GlobalConsts.fontZoomSize) ?? 18;

@ -1,14 +1,13 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:tangheem/api/user_api_client.dart';
import 'package:tangheem/classes/colors.dart';
import 'package:tangheem/classes/utils.dart';
import 'package:tangheem/widgets/common_textfield_widget.dart';
import 'package:tangheem/widgets/otp_widget.dart';
class ChangePasswordDialog extends StatefulWidget {
final Function(String) onPassword;
ChangePasswordDialog({Key key, this.onPassword}) : super(key: key);
@override

@ -1,14 +1,13 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:tangheem/api/user_api_client.dart';
import 'package:tangheem/classes/colors.dart';
import 'package:tangheem/classes/utils.dart';
import 'package:tangheem/widgets/common_textfield_widget.dart';
import 'package:tangheem/widgets/otp_widget.dart';
class DiscussionInputDialog extends StatefulWidget {
final Function(String) onCommentPress;
DiscussionInputDialog({Key key, this.onCommentPress}) : super(key: key);
@override

@ -1,4 +1,4 @@
import 'dart:io';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

@ -1,13 +1,13 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:tangheem/api/user_api_client.dart';
import 'package:tangheem/classes/colors.dart';
import 'package:tangheem/classes/utils.dart';
import 'package:tangheem/widgets/otp_widget.dart';
class OTPDialog extends StatefulWidget {
final Function(int) onOTP;
OTPDialog({Key key, this.onOTP}) : super(key: key);
@override

@ -13,6 +13,7 @@ class BookmarkScreen extends StatefulWidget {
final String tangheemQuery;
final String tangheemTypeName;
final SurahModelData surah;
BookmarkScreen({Key key, this.surah, this.tangheemQuery, this.tangheemTypeName}) : super(key: key);
@override
@ -46,6 +47,7 @@ class _BookmarkScreenState extends State<BookmarkScreen> {
// _fabColor = isOpen! ? Colors.green : Colors.blue;
// });
}
void getBookMark() async {
Utils.showLoading(context);
_bookMarkList = await BookMarkModel.getFromPrefs();

@ -8,6 +8,7 @@ import 'package:tangheem/widgets/common_textfield_widget.dart';
class ContactUsScreen extends StatefulWidget {
static const String routeName = "/contact_us";
ContactUsScreen({Key key}) : super(key: key);
@override

@ -1,4 +1,3 @@
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
@ -6,12 +5,12 @@ import 'package:tangheem/api/tangheem_user_api_client.dart';
import 'package:tangheem/classes/colors.dart';
import 'package:tangheem/classes/utils.dart';
import 'package:tangheem/models/content_info_model.dart';
import 'package:tangheem/models/member_model.dart';
import 'package:tangheem/ui/misc/no_data_ui.dart';
class ContentInfoScreen extends StatefulWidget {
static const String routeName = "/content_info";
final int contentId;
ContentInfoScreen({Key key, this.contentId}) : super(key: key);
@override

@ -3,11 +3,11 @@ import 'package:flutter_svg/svg.dart';
import 'package:tangheem/api/user_api_client.dart';
import 'package:tangheem/classes/colors.dart';
import 'package:tangheem/classes/utils.dart';
import 'package:tangheem/extensions/string_extensions.dart';
import 'package:tangheem/models/general_response_model.dart';
import 'package:tangheem/ui/dialogs/change_password_dialog.dart';
import 'package:tangheem/ui/dialogs/otp_dialog.dart';
import 'package:tangheem/widgets/common_textfield_widget.dart';
import 'package:tangheem/extensions/string_extensions.dart';
class ForgotPasswordScreen extends StatefulWidget {
static const String routeName = "/forgot_password";
@ -23,6 +23,7 @@ class ForgotPasswordScreen extends StatefulWidget {
class _ForgotPasswordScreenState extends State<ForgotPasswordScreen> {
TextEditingController _emailController = TextEditingController();
GeneralResponseModel _generalResponse;
@override
void initState() {
super.initState();

@ -6,11 +6,11 @@ import 'package:tangheem/app_state/app_state.dart';
import 'package:tangheem/classes/colors.dart';
import 'package:tangheem/classes/consts.dart';
import 'package:tangheem/classes/utils.dart';
import 'package:tangheem/extensions/string_extensions.dart';
import 'package:tangheem/models/authentication_user_model.dart';
import 'package:tangheem/ui/screens/forgot_password_screen.dart';
import 'package:tangheem/ui/screens/registration_screen.dart';
import 'package:tangheem/widgets/common_textfield_widget.dart';
import 'package:tangheem/extensions/string_extensions.dart';
class LoginScreen extends StatefulWidget {
static const String routeName = "/login";

@ -10,6 +10,7 @@ import 'package:tangheem/ui/misc/no_data_ui.dart';
class MemberScreen extends StatefulWidget {
static const String routeName = "/members";
MemberScreen({Key key}) : super(key: key);
@override

@ -3,6 +3,7 @@ import 'package:syncfusion_flutter_pdfviewer/pdfviewer.dart';
class PdfViewerScreen extends StatefulWidget {
static const String routeName = "/tangheem_pdf";
PdfViewerScreen({Key key}) : super(key: key);
@override
@ -13,6 +14,7 @@ class PdfViewerScreen extends StatefulWidget {
class _PdfViewerScreenState extends State<PdfViewerScreen> {
final GlobalKey<SfPdfViewerState> _pdfViewerKey = GlobalKey();
@override
void initState() {
super.initState();

@ -13,17 +13,15 @@ import 'package:tangheem/models/aya_model.dart';
import 'package:tangheem/models/aya_tangheem_type_mapped.dart';
import 'package:tangheem/models/bookmark_model.dart';
import 'package:tangheem/models/surah_model.dart';
import 'package:tangheem/widgets/auto_scroll_view/aya_scroll_view.dart';
import 'package:tangheem/widgets/auto_scroll_view/scroll_id.dart';
import 'package:tangheem/widgets/aya_player_widget.dart';
import 'package:tangheem/widgets/common_dropdown_button.dart';
import 'package:tangheem/widgets/text_highlight_widget.dart';
import 'tangheem_detail_screen.dart';
class QuranScreen extends StatefulWidget {
static const String routeName = "/quran";
final BookMarkModel bookmark;
QuranScreen({Key key, this.bookmark}) : super(key: key);
@override
@ -65,6 +63,7 @@ class _QuranScreenState extends State<QuranScreen> {
double fontSize = 18;
SharedPreferences prefs;
void getPrefs() async {
prefs = await SharedPreferences.getInstance();
fontSize = (prefs.getInt(GlobalConsts.fontZoomSize) ?? 18) + 0.0;
@ -95,6 +94,7 @@ class _QuranScreenState extends State<QuranScreen> {
}
List<BookMarkModel> _bookMark = [];
void getBookMark() async {
_bookMark = await BookMarkModel.getFromPrefs();
if (_bookMark.length == 1) {
@ -107,6 +107,7 @@ class _QuranScreenState extends State<QuranScreen> {
int numberOfAyah = 0;
var filteredAyahList = [];
void filterData() {
numberOfAyah = _surahModel?.data[_selectedSurah]?.numberOfAyahs ?? 0;
filteredAyahList = List.generate(getNextMultiple(numberOfAyah), (index) => index + 1).toList().where((element) => element == 1 || (element % 5) == 0).toList() ?? [];

@ -4,10 +4,10 @@ import 'package:flutter_svg/svg.dart';
import 'package:tangheem/api/user_api_client.dart';
import 'package:tangheem/classes/colors.dart';
import 'package:tangheem/classes/utils.dart';
import 'package:tangheem/extensions/string_extensions.dart';
import 'package:tangheem/models/country_model.dart';
import 'package:tangheem/ui/bottom_sheets/country_selection_bottom_sheet.dart';
import 'package:tangheem/widgets/common_textfield_widget.dart';
import 'package:tangheem/extensions/string_extensions.dart';
class RegistrationScreen extends StatefulWidget {
static const String routeName = "/registration";

@ -8,18 +8,20 @@ import 'package:tangheem/app_state/app_state.dart';
import 'package:tangheem/classes/colors.dart';
import 'package:tangheem/classes/consts.dart';
import 'package:tangheem/classes/utils.dart';
import 'package:tangheem/extensions/string_extensions.dart';
import 'package:tangheem/models/aya_tangheem_type_mapped.dart';
import 'package:tangheem/models/discussion_model.dart';
import 'package:tangheem/ui/dialogs/discussion_input_dialog.dart';
import 'package:tangheem/widgets/aya_player_widget.dart';
import 'package:tangheem/widgets/aya_record_widget.dart';
import 'package:tangheem/widgets/text_highlight_widget.dart';
import 'package:tangheem/extensions/string_extensions.dart';
import 'login_screen.dart';
class TangheemDetailScreen extends StatefulWidget {
static const String routeName = "/tangheem_detail";
final List<AyatTangheemTypeMappedData> ayatTangheemTypeMappedDataList;
// final AyatTangheemTypeMappedData ayatTangheemTypeMappedData;
TangheemDetailScreen({Key key, this.ayatTangheemTypeMappedDataList}) : super(key: key);
@ -54,6 +56,7 @@ class _TangheemDetailScreenState extends State<TangheemDetailScreen> {
double fontSize = 18;
SharedPreferences prefs;
void getPrefs() async {
prefs = await SharedPreferences.getInstance();
fontSize = (prefs.getInt(GlobalConsts.fontZoomSize) ?? 18) + 0.0;

@ -7,7 +7,6 @@ import 'package:tangheem/models/aya_tangheem_type_mapped.dart';
import 'package:tangheem/models/surah_model.dart';
import 'package:tangheem/ui/misc/no_data_ui.dart';
import 'package:tangheem/ui/screens/tangheem_detail_screen.dart';
import 'package:tangheem/widgets/aya_record_widget.dart';
import 'package:tangheem/widgets/text_highlight_widget.dart';
class TangheemScreen extends StatefulWidget {
@ -15,6 +14,7 @@ class TangheemScreen extends StatefulWidget {
final String tangheemQuery;
final String tangheemTypeName;
final SurahModelData surah;
TangheemScreen({Key key, this.surah, this.tangheemQuery, this.tangheemTypeName}) : super(key: key);
@override

@ -3,6 +3,7 @@ import 'dart:io';
import 'dart:math' as math;
import 'dart:typed_data';
import 'dart:ui' as ui;
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart';
@ -21,6 +22,7 @@ class AyaPlayerWidget extends StatefulWidget {
final String surahName;
final GlobalKey globalKey;
final List<VoiceNote> voiceNoteList;
AyaPlayerWidget({Key key, this.surahName, this.voiceNoteList, @required this.globalKey}) : super(key: key);
@override

@ -1,4 +1,3 @@
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:tangheem/classes/colors.dart';

@ -1,4 +1,5 @@
import 'dart:math';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:tangheem/classes/colors.dart';

Loading…
Cancel
Save