|
|
|
|
@ -24,6 +24,7 @@ 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/new/CommonHeader.dart';
|
|
|
|
|
import 'package:tangheem/widgets/text_highlight_widget.dart';
|
|
|
|
|
|
|
|
|
|
import 'login_screen.dart';
|
|
|
|
|
@ -159,7 +160,6 @@ class _TangheemDetailScreenState extends State<TangheemDetailScreen> {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Container(
|
|
|
|
|
padding: EdgeInsets.fromLTRB(16, 0, 16, 0),
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: _ayatTangheemTypeMappedFirstData == null
|
|
|
|
|
? SizedBox()
|
|
|
|
|
@ -169,341 +169,307 @@ class _TangheemDetailScreenState extends State<TangheemDetailScreen> {
|
|
|
|
|
Expanded(
|
|
|
|
|
child: ListView(
|
|
|
|
|
physics: BouncingScrollPhysics(),
|
|
|
|
|
padding: EdgeInsets.only(bottom: 16, top: 16),
|
|
|
|
|
padding: EdgeInsets.only(bottom: 16),
|
|
|
|
|
children: [
|
|
|
|
|
Text.rich(
|
|
|
|
|
TextSpan(
|
|
|
|
|
children: [
|
|
|
|
|
TextSpan(
|
|
|
|
|
text: _ayatTangheemTypeMappedFirstData.tangheemTypeName ?? "",
|
|
|
|
|
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20, color: ColorConsts.primaryBlue, height: 1.5),
|
|
|
|
|
),
|
|
|
|
|
WidgetSpan(
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
zoomButtons("assets/icons/reduce_size.svg", () {
|
|
|
|
|
if (fontSize <= 12) {
|
|
|
|
|
Utils.showToast("وصل حجم الخط إلى الحد الأدنى للحجم");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
fontSize -= 2;
|
|
|
|
|
prefs.setInt(GlobalConsts.fontZoomSize, fontSize);
|
|
|
|
|
setState(() {});
|
|
|
|
|
}),
|
|
|
|
|
SizedBox(width: 4),
|
|
|
|
|
zoomButtons("assets/icons/increase_size.svg", () {
|
|
|
|
|
if (fontSize >= 36) {
|
|
|
|
|
Utils.showToast("وصل حجم الخط إلى الحد الأقصى للحجم");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
fontSize += 2;
|
|
|
|
|
prefs.setInt(GlobalConsts.fontZoomSize, fontSize);
|
|
|
|
|
setState(() {});
|
|
|
|
|
}),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
WidgetSpan(
|
|
|
|
|
child: PopupMenuButton(
|
|
|
|
|
child: IconButton(
|
|
|
|
|
highlightColor: Colors.transparent,
|
|
|
|
|
splashColor: Colors.transparent,
|
|
|
|
|
constraints: BoxConstraints(),
|
|
|
|
|
padding: EdgeInsets.only(right: 2),
|
|
|
|
|
icon: SvgPicture.asset("assets/icons/share_aya.svg", height: 16, width: 16),
|
|
|
|
|
onPressed: null),
|
|
|
|
|
padding: EdgeInsets.fromLTRB(4, 4, 0, 4),
|
|
|
|
|
itemBuilder: (_) => <PopupMenuItem<int>>[
|
|
|
|
|
PopupMenuItem(
|
|
|
|
|
value: 1,
|
|
|
|
|
child: Text(
|
|
|
|
|
"مشاركة رابط",
|
|
|
|
|
style: TextStyle(color: ColorConsts.primaryBlack),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
PopupMenuItem(
|
|
|
|
|
value: 2,
|
|
|
|
|
child: Text(
|
|
|
|
|
"مشاركة صورة",
|
|
|
|
|
style: TextStyle(color: ColorConsts.primaryBlack),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
onSelected: (int value) {
|
|
|
|
|
if (value == 1) {
|
|
|
|
|
_shareAyaAsLink();
|
|
|
|
|
} else {
|
|
|
|
|
_shareAyaAsImage();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
// TextSpan(text: ' world!'),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 8),
|
|
|
|
|
Text(
|
|
|
|
|
_ayatTangheemTypeMappedFirstData.tangheemTypeDescription ?? "",
|
|
|
|
|
style: TextStyle(fontSize: 14, color: ColorConsts.textGrey, height: 1.5),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 8),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(top: 4, bottom: 4),
|
|
|
|
|
padding: EdgeInsets.only(top: 8, bottom: 8, right: 4, left: 4),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.circular(8),
|
|
|
|
|
),
|
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
child: RepaintBoundary(
|
|
|
|
|
key: _globalKey,
|
|
|
|
|
child: Material(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
child: ListView.builder(
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
itemCount: ayatTangheemTypeMappedDataList.length > 5 ? 5 : ayatTangheemTypeMappedDataList.length,
|
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
|
final _ayatTangheemTypeMappedData = ayatTangheemTypeMappedDataList[index];
|
|
|
|
|
_ayatTangheemTypeMappedData.property?.sort((a, b) => a.orderNo.compareTo(b.orderNo));
|
|
|
|
|
List<TangheemProperty> _tangheemInsideTableList = [];
|
|
|
|
|
List<TangheemProperty> _tangheemAboveTableList = [];
|
|
|
|
|
List<TangheemProperty> _tangheemBelowTableList = [];
|
|
|
|
|
List<String> _tangheemWords = [];
|
|
|
|
|
|
|
|
|
|
List<TangheemProperty> _tempPropertyList = [];
|
|
|
|
|
_tempPropertyList.addAll(_ayatTangheemTypeMappedData?.property ?? <TangheemProperty>[]);
|
|
|
|
|
int firstIndex = _tempPropertyList.indexWhere((element) => element.isInsideTable);
|
|
|
|
|
|
|
|
|
|
if (firstIndex >= 0) {
|
|
|
|
|
var _tempPropertyListTop = _tempPropertyList.take(firstIndex);
|
|
|
|
|
_tempPropertyListTop = _tempPropertyListTop.where((element) => (element.propertyValue ?? "").isNotEmpty)?.toList() ?? [];
|
|
|
|
|
_tangheemAboveTableList = _tempPropertyListTop;
|
|
|
|
|
_tempPropertyListTop.forEach((element) {
|
|
|
|
|
_tempPropertyList.remove(element);
|
|
|
|
|
});
|
|
|
|
|
var _tempPropertyListInside = _tempPropertyList?.where((element) => (element.isInsideTable))?.toList() ?? [];
|
|
|
|
|
_tempPropertyListInside.forEach((element) {
|
|
|
|
|
_tempPropertyList.remove(element);
|
|
|
|
|
});
|
|
|
|
|
_tempPropertyListInside = _tempPropertyListInside.where((element) => (element.propertyValue ?? "").isNotEmpty)?.toList() ?? [];
|
|
|
|
|
_tangheemInsideTableList = _tempPropertyListInside;
|
|
|
|
|
var _tempPropertyListBelow = _tempPropertyList;
|
|
|
|
|
_tempPropertyListBelow = _tempPropertyListBelow.where((element) => (element.propertyValue ?? "").isNotEmpty)?.toList() ?? [];
|
|
|
|
|
_tangheemBelowTableList = _tempPropertyListBelow;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_tangheemWords.add(_ayatTangheemTypeMappedData.highlightText ?? "");
|
|
|
|
|
// _tangheemInsideTableList =
|
|
|
|
|
// _ayatTangheemTypeMappedData?.property?.where((element) => (element.isInsideTable) && (element.propertyValue ?? "").isNotEmpty)?.toList() ?? [];
|
|
|
|
|
// _tangheemAboveTableList =
|
|
|
|
|
// _ayatTangheemTypeMappedData?.property?.where((element) => (!element.isInsideTable) && (element.propertyValue ?? "").isNotEmpty)?.toList() ?? [];
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
var _tempTangheemIndexWord = "";
|
|
|
|
|
if (ayatTangheemTypeMappedDataList.length == 1) {
|
|
|
|
|
_tempTangheemIndexWord = "";
|
|
|
|
|
} else {
|
|
|
|
|
_tempTangheemIndexWord = getArabicIndexWord(index) + " ";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ListView(
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
padding: EdgeInsets.all(4),
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
" جملة ${_ayatTangheemTypeMappedData.tangheemTypeName} $_tempTangheemIndexWord",
|
|
|
|
|
style: TextStyle(fontWeight: FontWeight.bold, color: Colors.white, backgroundColor: ColorConsts.primaryBlue),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(height: 2, color: ColorConsts.primaryBlue),
|
|
|
|
|
CommonHeader(_ayatTangheemTypeMappedFirstData.tangheemTypeName ?? "", "assets/icons/new/quran_bg.jpg", Color(0xffAE8646),
|
|
|
|
|
isCustom: true, message: _ayatTangheemTypeMappedFirstData.tangheemTypeDescription ?? "", onTap: (headerEnum) {
|
|
|
|
|
if (headerEnum == CommonHeaderEnum.ShareAsText) {
|
|
|
|
|
_shareAyaAsLink();
|
|
|
|
|
} else if (headerEnum == CommonHeaderEnum.ShareAsImage) {
|
|
|
|
|
_shareAyaAsImage();
|
|
|
|
|
} else if (headerEnum == CommonHeaderEnum.ZoomOut) {
|
|
|
|
|
if (fontSize <= 12) {
|
|
|
|
|
Utils.showToast("وصل حجم الخط إلى الحد الأدنى للحجم");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
fontSize -= 2;
|
|
|
|
|
prefs.setInt(GlobalConsts.fontZoomSize, fontSize);
|
|
|
|
|
setState(() {});
|
|
|
|
|
} else if (headerEnum == CommonHeaderEnum.ZoomIn) {
|
|
|
|
|
if (fontSize >= 36) {
|
|
|
|
|
Utils.showToast("وصل حجم الخط إلى الحد الأقصى للحجم");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
fontSize += 2;
|
|
|
|
|
prefs.setInt(GlobalConsts.fontZoomSize, fontSize);
|
|
|
|
|
setState(() {});
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
SingleChildScrollView(
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
child: RepaintBoundary(
|
|
|
|
|
key: _globalKey,
|
|
|
|
|
child: Material(
|
|
|
|
|
color: ColorConsts.greyF4Color,
|
|
|
|
|
child: ListView.builder(
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
padding: EdgeInsets.all(0),
|
|
|
|
|
itemCount: ayatTangheemTypeMappedDataList.length > 5 ? 5 : ayatTangheemTypeMappedDataList.length,
|
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
|
final _ayatTangheemTypeMappedData = ayatTangheemTypeMappedDataList[index];
|
|
|
|
|
_ayatTangheemTypeMappedData.property?.sort((a, b) => a.orderNo.compareTo(b.orderNo));
|
|
|
|
|
List<TangheemProperty> _tangheemInsideTableList = [];
|
|
|
|
|
List<TangheemProperty> _tangheemAboveTableList = [];
|
|
|
|
|
List<TangheemProperty> _tangheemBelowTableList = [];
|
|
|
|
|
List<String> _tangheemWords = [];
|
|
|
|
|
|
|
|
|
|
List<TangheemProperty> _tempPropertyList = [];
|
|
|
|
|
_tempPropertyList.addAll(_ayatTangheemTypeMappedData?.property ?? <TangheemProperty>[]);
|
|
|
|
|
int firstIndex = _tempPropertyList.indexWhere((element) => element.isInsideTable);
|
|
|
|
|
|
|
|
|
|
if (firstIndex >= 0) {
|
|
|
|
|
var _tempPropertyListTop = _tempPropertyList.take(firstIndex);
|
|
|
|
|
_tempPropertyListTop = _tempPropertyListTop.where((element) => (element.propertyValue ?? "").isNotEmpty)?.toList() ?? [];
|
|
|
|
|
_tangheemAboveTableList = _tempPropertyListTop;
|
|
|
|
|
_tempPropertyListTop.forEach((element) {
|
|
|
|
|
_tempPropertyList.remove(element);
|
|
|
|
|
});
|
|
|
|
|
var _tempPropertyListInside = _tempPropertyList?.where((element) => (element.isInsideTable))?.toList() ?? [];
|
|
|
|
|
_tempPropertyListInside.forEach((element) {
|
|
|
|
|
_tempPropertyList.remove(element);
|
|
|
|
|
});
|
|
|
|
|
_tempPropertyListInside = _tempPropertyListInside.where((element) => (element.propertyValue ?? "").isNotEmpty)?.toList() ?? [];
|
|
|
|
|
_tangheemInsideTableList = _tempPropertyListInside;
|
|
|
|
|
var _tempPropertyListBelow = _tempPropertyList;
|
|
|
|
|
_tempPropertyListBelow = _tempPropertyListBelow.where((element) => (element.propertyValue ?? "").isNotEmpty)?.toList() ?? [];
|
|
|
|
|
_tangheemBelowTableList = _tempPropertyListBelow;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_tangheemWords.add(_ayatTangheemTypeMappedData.highlightText ?? "");
|
|
|
|
|
// _tangheemInsideTableList =
|
|
|
|
|
// _ayatTangheemTypeMappedData?.property?.where((element) => (element.isInsideTable) && (element.propertyValue ?? "").isNotEmpty)?.toList() ?? [];
|
|
|
|
|
// _tangheemAboveTableList =
|
|
|
|
|
// _ayatTangheemTypeMappedData?.property?.where((element) => (!element.isInsideTable) && (element.propertyValue ?? "").isNotEmpty)?.toList() ?? [];
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
var _tempTangheemIndexWord = "";
|
|
|
|
|
if (ayatTangheemTypeMappedDataList.length == 1) {
|
|
|
|
|
_tempTangheemIndexWord = "";
|
|
|
|
|
} else {
|
|
|
|
|
_tempTangheemIndexWord = getArabicIndexWord(index) + " ";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget innerTableWidget = (_tangheemInsideTableList.isNotEmpty)
|
|
|
|
|
? Column(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
height: 38,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
alignment: Alignment.center,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Color(0xff40696B),
|
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
|
topLeft: Radius.circular(20),
|
|
|
|
|
topRight: Radius.circular(20),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 8),
|
|
|
|
|
TextHighLightLengthWidget(
|
|
|
|
|
text: _ayatTangheemTypeMappedData.reverseAyatNumber(),
|
|
|
|
|
startIndex: _ayatTangheemTypeMappedData.startIndex,
|
|
|
|
|
endIndex: _ayatTangheemTypeMappedData.endIndex,
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
fontSize: fontSize.toDouble(),
|
|
|
|
|
highlightAya: _ayatTangheemTypeMappedData.highlightText,
|
|
|
|
|
highlightAyaNos: _ayatTangheemTypeMappedData.highlightAyaNos ?? "",
|
|
|
|
|
ayahTextList: _ayatTangheemTypeMappedData.ayahTextList,
|
|
|
|
|
child: "خط النبر و التنغيم ل${_ayatTangheemTypeMappedData.tangheemTypeName ?? ""}".toText(16),
|
|
|
|
|
),
|
|
|
|
|
tangheemInsideTablePropertyView(_tangheemInsideTableList)
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
: SizedBox();
|
|
|
|
|
|
|
|
|
|
Widget aboveTableWidget = (_tangheemAboveTableList.isNotEmpty)
|
|
|
|
|
? Container(
|
|
|
|
|
padding: EdgeInsets.only(left: 20, right: 20),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
// border: Border(
|
|
|
|
|
// left: BorderSide(color: ColorConsts.greyE0Color, width: 1),
|
|
|
|
|
// right: BorderSide(color: ColorConsts.greyE0Color, width: 1),
|
|
|
|
|
// bottom: BorderSide(color: ColorConsts.greyE0Color, width: 1),
|
|
|
|
|
// top: BorderSide(color: ColorConsts.greyE0Color, width: 0),
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
|
topRight: Radius.circular(20),
|
|
|
|
|
topLeft: Radius.circular(20),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
// TextHighLightWidget(
|
|
|
|
|
// text: _ayatTangheemTypeMappedData.reverseAyatNumber() ?? "",
|
|
|
|
|
// valueColor: ColorConsts.primaryBlue,
|
|
|
|
|
// highlights: _tangheemWords,
|
|
|
|
|
// highLightFontSize: fontSize,
|
|
|
|
|
// style: TextStyle(
|
|
|
|
|
// fontFamily: "UthmanicHafs",
|
|
|
|
|
// fontSize: fontSize,
|
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
SizedBox(height: 16),
|
|
|
|
|
ListView.separated(
|
|
|
|
|
child: ListView.separated(
|
|
|
|
|
itemCount: _tangheemAboveTableList.length,
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
separatorBuilder: (context, index) {
|
|
|
|
|
return Divider(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
height: 4,
|
|
|
|
|
thickness: 0,
|
|
|
|
|
);
|
|
|
|
|
return Divider(color: ColorConsts.greyB7Color, height: 4, thickness: 0);
|
|
|
|
|
},
|
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
|
return Row(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
height: 40,
|
|
|
|
|
padding: EdgeInsets.only(left: 4, right: 8),
|
|
|
|
|
alignment: Alignment.centerRight,
|
|
|
|
|
child: Text(
|
|
|
|
|
_tangheemAboveTableList[index].propertyText,
|
|
|
|
|
maxLines: 1,
|
|
|
|
|
style: TextStyle(fontWeight: FontWeight.bold, color: ColorConsts.secondaryOrange),
|
|
|
|
|
),
|
|
|
|
|
color: ColorConsts.secondaryWhite,
|
|
|
|
|
),
|
|
|
|
|
_tangheemAboveTableList[index].propertyText.toText(13, color: ColorConsts.greyB7Color),
|
|
|
|
|
Container(
|
|
|
|
|
width: 1,
|
|
|
|
|
height: 18,
|
|
|
|
|
color: ColorConsts.greyB7Color,
|
|
|
|
|
margin: EdgeInsets.only(left: 8, right: 8),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(width: 4),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
color: ColorConsts.secondaryWhite,
|
|
|
|
|
padding: EdgeInsets.all(4),
|
|
|
|
|
child: Container(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
padding: EdgeInsets.only(left: 4, right: 8),
|
|
|
|
|
// alignment: Alignment.centerRight,
|
|
|
|
|
child: Html(
|
|
|
|
|
data: _tangheemAboveTableList[index]?.propertyValue ?? "",
|
|
|
|
|
style: {
|
|
|
|
|
'html': Style(textAlign: TextAlign.left),
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
// Text(
|
|
|
|
|
// _tangheemAboveTableList[index].propertyValue,
|
|
|
|
|
// maxLines: 1,
|
|
|
|
|
// style: TextStyle(
|
|
|
|
|
// color: Color(
|
|
|
|
|
// Utils.stringToHex(_tangheemAboveTableList[index].textColor),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
padding: EdgeInsets.only(left: 4, right: 8),
|
|
|
|
|
// alignment: Alignment.centerRight,
|
|
|
|
|
child: Html(
|
|
|
|
|
data: _tangheemAboveTableList[index]?.propertyValue ?? "",
|
|
|
|
|
style: {
|
|
|
|
|
'html': Style(textAlign: TextAlign.left),
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}),
|
|
|
|
|
if (_tangheemInsideTableList.isNotEmpty)
|
|
|
|
|
Container(
|
|
|
|
|
color: ColorConsts.primaryBlue,
|
|
|
|
|
margin: EdgeInsets.only(top: 8, bottom: 8),
|
|
|
|
|
padding: EdgeInsets.all(8),
|
|
|
|
|
child: Column(
|
|
|
|
|
)
|
|
|
|
|
: SizedBox();
|
|
|
|
|
|
|
|
|
|
Widget belowTableWidget = (_tangheemBelowTableList.isNotEmpty) ? tangheemOutSideTablePropertyView(_tangheemBelowTableList) : SizedBox();
|
|
|
|
|
|
|
|
|
|
Widget relatedTangheemWidget = (_dataList.isNotEmpty)
|
|
|
|
|
? Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
padding: EdgeInsets.only(top: 18, bottom: 18, left: 12, right: 12),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(20),
|
|
|
|
|
// border: Border.all(color: ColorConsts.greyE0Color, width: 1),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
"قائمة الأساليب اللغوية في هذه الآية".toText(13, color: ColorConsts.darkText),
|
|
|
|
|
12.height,
|
|
|
|
|
Wrap(
|
|
|
|
|
spacing: 8,
|
|
|
|
|
runSpacing: 8,
|
|
|
|
|
alignment: WrapAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
"خط النبر و التنغيم ل${_ayatTangheemTypeMappedData.tangheemTypeName ?? ""}",
|
|
|
|
|
style: TextStyle(fontWeight: FontWeight.bold, color: Colors.white),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 8),
|
|
|
|
|
tangheemInsideTablePropertyView(_tangheemInsideTableList)
|
|
|
|
|
for (int index = 0; index < _dataList.length; index++)
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
List<AyatTangheemTypeMappedData> list = _dataList;
|
|
|
|
|
var removedData = list[index];
|
|
|
|
|
list.remove(removedData);
|
|
|
|
|
list.insert(0, removedData);
|
|
|
|
|
list = list
|
|
|
|
|
?.where((element) => (element.ayahNos.contains(removedData.ayahNos)) && (element.tangheemTypeId == removedData.tangheemTypeId))
|
|
|
|
|
?.toList() ??
|
|
|
|
|
[];
|
|
|
|
|
|
|
|
|
|
TangheemDetailParams tangheem =
|
|
|
|
|
TangheemDetailParams(selectedTangheemTypeId: _dataList[index].ayaTangheemTypeId, ayatTangheemTypeMappedDataList: list);
|
|
|
|
|
Navigator.pushNamed(context, TangheemDetailScreen.routeName, arguments: tangheem);
|
|
|
|
|
},
|
|
|
|
|
child: Container(
|
|
|
|
|
padding: EdgeInsets.only(left: 12, right: 12, top: 6, bottom: 6),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
|
|
color: Color(0xff91C1BC),
|
|
|
|
|
),
|
|
|
|
|
child: _dataList[index].tangheemTypeName.toText(12)),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
tangheemOutSideTablePropertyView(_tangheemBelowTableList)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: SizedBox();
|
|
|
|
|
|
|
|
|
|
Widget aboveInnerMerge = Container(
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
|
topLeft: Radius.circular(20),
|
|
|
|
|
topRight: Radius.circular(20),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [aboveTableWidget, innerTableWidget],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Widget aboveInnerBelowMerge = Container(
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white, borderRadius: BorderRadius.circular(20), boxShadow: [BoxShadow(color: ColorConsts.greyE0Color, offset: Offset(0.0, 1.0), blurRadius: 0)]
|
|
|
|
|
// border: Border.all(color: ColorConsts.greyE0Color, width: 1),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [aboveInnerMerge, belowTableWidget],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
return ListView(
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
padding: EdgeInsets.only(top: 21, bottom: 21, left: 24, right: 24),
|
|
|
|
|
children: [
|
|
|
|
|
" جملة ${_ayatTangheemTypeMappedData.tangheemTypeName} $_tempTangheemIndexWord".toText(22, color: ColorConsts.darkText, textAlign: TextAlign.center, height: 22),
|
|
|
|
|
|
|
|
|
|
12.height,Row(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
SvgPicture.asset("assets/icons/new/surah_right.svg", height: 13, width: 11, color: ColorConsts.darkText),
|
|
|
|
|
12.width,
|
|
|
|
|
_ayatTangheemTypeMappedData.surahNameAr.toText(13, color: ColorConsts.darkText, textAlign: TextAlign.center, height: 22),
|
|
|
|
|
12.width,
|
|
|
|
|
SvgPicture.asset("assets/icons/new/surah_left.svg", height: 13, width: 11, color: ColorConsts.darkText)
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}),
|
|
|
|
|
).center,
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(top: 21, bottom: 21),
|
|
|
|
|
padding: EdgeInsets.all(12),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.circular(20),
|
|
|
|
|
border: Border.all(color: ColorConsts.greyE0Color, width: 1),
|
|
|
|
|
),
|
|
|
|
|
child: TextHighLightLengthWidget(
|
|
|
|
|
text: _ayatTangheemTypeMappedData.reverseAyatNumber(),
|
|
|
|
|
startIndex: _ayatTangheemTypeMappedData.startIndex,
|
|
|
|
|
endIndex: _ayatTangheemTypeMappedData.endIndex,
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
fontSize: fontSize.toDouble(),
|
|
|
|
|
highlightAya: _ayatTangheemTypeMappedData.highlightText,
|
|
|
|
|
highlightAyaNos: _ayatTangheemTypeMappedData.highlightAyaNos ?? "",
|
|
|
|
|
ayahTextList: _ayatTangheemTypeMappedData.ayahTextList,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.transparent,
|
|
|
|
|
borderRadius: BorderRadius.circular(20),
|
|
|
|
|
border: Border.all(color: ColorConsts.greyE0Color, width: 1),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [aboveInnerBelowMerge, relatedTangheemWidget],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
if (_dataList.isNotEmpty)
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
16.height,
|
|
|
|
|
Container(
|
|
|
|
|
height: 38,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
alignment: Alignment.center,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: ColorConsts.brownB1CColor,
|
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
|
topRight: Radius.circular(20.0),
|
|
|
|
|
topLeft: Radius.circular(20.0),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: "قائمة الأساليب اللغوية في هذه الآية".toText(16),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.transparent,
|
|
|
|
|
border: Border.all(width: 1, color: ColorConsts.greyE0Color),
|
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
|
bottomLeft: Radius.circular(20),
|
|
|
|
|
bottomRight: Radius.circular(20),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: ListView.separated(
|
|
|
|
|
padding: EdgeInsets.all(16),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
itemCount: _dataList.length,
|
|
|
|
|
separatorBuilder: (context, index) => Divider(height: 1, thickness: 1, color: ColorConsts.greyE0Color).paddingOnly(top: 12, bottom: 12),
|
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
|
print(index);
|
|
|
|
|
return InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
List<AyatTangheemTypeMappedData> list = _dataList;
|
|
|
|
|
var removedData = list[index];
|
|
|
|
|
list.remove(removedData);
|
|
|
|
|
list.insert(0, removedData);
|
|
|
|
|
list = list?.where((element) => (element.ayahNos.contains(removedData.ayahNos)) && (element.tangheemTypeId == removedData.tangheemTypeId))?.toList() ?? [];
|
|
|
|
|
|
|
|
|
|
TangheemDetailParams tangheem = TangheemDetailParams(selectedTangheemTypeId: _dataList[index].ayaTangheemTypeId, ayatTangheemTypeMappedDataList: list);
|
|
|
|
|
Navigator.pushNamed(context, TangheemDetailScreen.routeName, arguments: tangheem);
|
|
|
|
|
},
|
|
|
|
|
child: Text(
|
|
|
|
|
_dataList[index].tangheemTypeName,
|
|
|
|
|
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 16, color: ColorConsts.secondaryOrange, height: 1.5),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
if (MediaQuery.of(context).orientation == Orientation.portrait)
|
|
|
|
|
AyaPlayerWidget(
|
|
|
|
|
surahName: _ayatTangheemTypeMappedFirstData?.surahNameAr ?? "",
|
|
|
|
|
ayaTangheemTypeId: _ayatTangheemTypeMappedFirstData?.tangheemTypeId ?? "",
|
|
|
|
|
globalKey: _globalKey,
|
|
|
|
|
numberInSurah: _ayatTangheemTypeMappedFirstData?.ayatNumberInSurahs,
|
|
|
|
|
ayaNo: _ayatTangheemTypeMappedFirstData?.ayahNo,
|
|
|
|
|
surahNo: _ayatTangheemTypeMappedFirstData?.surahNo,
|
|
|
|
|
voiceNoteList: voiceNoteList)
|
|
|
|
|
.paddingOnly(left: 24, right: 24),
|
|
|
|
|
SizedBox(height: 16),
|
|
|
|
|
AyaRecordWidget().paddingOnly(left: 24, right: 24),
|
|
|
|
|
SizedBox(height: 16),
|
|
|
|
|
AyaRecordWidget(),
|
|
|
|
|
discussionView(_discussionModel?.data ?? []).paddingOnly(left: 24, right: 24),
|
|
|
|
|
SizedBox(height: 16),
|
|
|
|
|
discussionView(_discussionModel?.data ?? []),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
if (MediaQuery.of(context).orientation == Orientation.portrait)
|
|
|
|
|
AyaPlayerWidget(
|
|
|
|
|
surahName: _ayatTangheemTypeMappedFirstData?.surahNameAr ?? "",
|
|
|
|
|
ayaTangheemTypeId: _ayatTangheemTypeMappedFirstData?.tangheemTypeId ?? "",
|
|
|
|
|
globalKey: _globalKey,
|
|
|
|
|
numberInSurah: _ayatTangheemTypeMappedFirstData?.ayatNumberInSurahs,
|
|
|
|
|
ayaNo: _ayatTangheemTypeMappedFirstData?.ayahNo,
|
|
|
|
|
surahNo: _ayatTangheemTypeMappedFirstData?.surahNo,
|
|
|
|
|
voiceNoteList: voiceNoteList),
|
|
|
|
|
if (MediaQuery.of(context).orientation == Orientation.landscape)
|
|
|
|
|
Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
@ -588,40 +554,40 @@ class _TangheemDetailScreenState extends State<TangheemDetailScreen> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget tangheemOutSideTablePropertyView(List<TangheemProperty> tangheemPropertyList) {
|
|
|
|
|
return ListView.separated(
|
|
|
|
|
itemCount: tangheemPropertyList.length,
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
separatorBuilder: (context, index) {
|
|
|
|
|
return Divider(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
height: 4,
|
|
|
|
|
thickness: 0,
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
|
return Row(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
height: 40,
|
|
|
|
|
padding: EdgeInsets.only(left: 4, right: 8),
|
|
|
|
|
alignment: Alignment.centerRight,
|
|
|
|
|
child: Text(
|
|
|
|
|
tangheemPropertyList[index].propertyText,
|
|
|
|
|
maxLines: 1,
|
|
|
|
|
style: TextStyle(fontWeight: FontWeight.bold, color: ColorConsts.secondaryOrange),
|
|
|
|
|
),
|
|
|
|
|
color: ColorConsts.secondaryWhite,
|
|
|
|
|
return Container(
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
border: Border(
|
|
|
|
|
// left: BorderSide(color: ColorConsts.greyE0Color, width: 1),
|
|
|
|
|
// right: BorderSide(color: ColorConsts.greyE0Color, width: 1),
|
|
|
|
|
// bottom: BorderSide(color: ColorConsts.greyE0Color, width: 1),
|
|
|
|
|
// top: BorderSide(color: ColorConsts.greyE0Color, width: 1),
|
|
|
|
|
),
|
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
|
bottomLeft: Radius.circular(20),
|
|
|
|
|
bottomRight: Radius.circular(20),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: ListView.separated(
|
|
|
|
|
itemCount: tangheemPropertyList.length,
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
padding: EdgeInsets.only(left: 20, right: 20),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
separatorBuilder: (context, index) {
|
|
|
|
|
return Divider(color: ColorConsts.greyB7Color, height: 1, thickness: 0);
|
|
|
|
|
},
|
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
|
return Row(
|
|
|
|
|
children: [
|
|
|
|
|
tangheemPropertyList[index].propertyText.toText(13, color: ColorConsts.greyB7Color),
|
|
|
|
|
Container(
|
|
|
|
|
width: 1,
|
|
|
|
|
height: 18,
|
|
|
|
|
color: ColorConsts.greyB7Color,
|
|
|
|
|
margin: EdgeInsets.only(left: 8, right: 8),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(width: 4),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
color: ColorConsts.secondaryWhite,
|
|
|
|
|
padding: EdgeInsets.all(4),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
padding: EdgeInsets.only(left: 4, right: 8),
|
|
|
|
|
// alignment: Alignment.centerRight,
|
|
|
|
|
child: Html(
|
|
|
|
|
@ -630,130 +596,49 @@ class _TangheemDetailScreenState extends State<TangheemDetailScreen> {
|
|
|
|
|
'html': Style(textAlign: TextAlign.left),
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
// Text(
|
|
|
|
|
// tangheemPropertyList[index].propertyValue,
|
|
|
|
|
// maxLines: 1,
|
|
|
|
|
// style: TextStyle(
|
|
|
|
|
// color: Color(
|
|
|
|
|
// Utils.stringToHex(tangheemPropertyList[index].textColor),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget tangheemInsideTablePropertyView(List<TangheemProperty> tangheemPropertyList) {
|
|
|
|
|
return Container(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
padding: EdgeInsets.all(2),
|
|
|
|
|
child: Row(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
for (var property in tangheemPropertyList)
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
// color: ColorConsts.secondaryWhite,
|
|
|
|
|
// padding: EdgeInsets.all(8),
|
|
|
|
|
margin: EdgeInsets.only(left: 2, right: 2),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
color: ColorConsts.secondaryWhite,
|
|
|
|
|
//height: 30,
|
|
|
|
|
alignment: Alignment.center,
|
|
|
|
|
padding: EdgeInsets.only(left: 2, right: 4),
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: Text(
|
|
|
|
|
property.propertyText ?? "",
|
|
|
|
|
// maxLines: 1,
|
|
|
|
|
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 12, color: ColorConsts.secondaryOrange),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(width: double.infinity, height: 4, color: Colors.white),
|
|
|
|
|
if ((property?.propertyValue ?? "").length > 0)
|
|
|
|
|
Container(
|
|
|
|
|
color: ColorConsts.secondaryWhite,
|
|
|
|
|
padding: EdgeInsets.all(4),
|
|
|
|
|
child: Container(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
padding: EdgeInsets.only(left: 2, right: 4),
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: Html(
|
|
|
|
|
data: property.propertyValue ?? "",
|
|
|
|
|
style: {
|
|
|
|
|
'html': Style(textAlign: TextAlign.left),
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
// Text(
|
|
|
|
|
// property.propertyValue ?? "",
|
|
|
|
|
// maxLines: 1,
|
|
|
|
|
// style: TextStyle(
|
|
|
|
|
// fontSize: 12,
|
|
|
|
|
// color: Color(
|
|
|
|
|
// Utils.stringToHex(property.textColor),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
return Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
for (var property in tangheemPropertyList)
|
|
|
|
|
Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
height: 35,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
color: Color(0xff669A9D),
|
|
|
|
|
alignment: Alignment.center,
|
|
|
|
|
child: (property.propertyText ?? "").toText(16),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
border: Border(
|
|
|
|
|
top: BorderSide(color: ColorConsts.greyE0Color, width: 1),
|
|
|
|
|
bottom: BorderSide(color: ColorConsts.greyE0Color, width: 1),
|
|
|
|
|
)),
|
|
|
|
|
padding: EdgeInsets.all(4),
|
|
|
|
|
child: Html(
|
|
|
|
|
data: property.propertyValue ?? "",
|
|
|
|
|
style: {
|
|
|
|
|
'html': Style(textAlign: TextAlign.left),
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
//@todo sikander :commented these line for later discussion
|
|
|
|
|
// ListView.separated(
|
|
|
|
|
// itemCount: tangheemPropertyList.length,
|
|
|
|
|
// physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
// padding: EdgeInsets.zero,
|
|
|
|
|
// shrinkWrap: true,
|
|
|
|
|
// separatorBuilder: (context, index) {
|
|
|
|
|
// return Divider(
|
|
|
|
|
// color: Colors.white,
|
|
|
|
|
// height: 1,
|
|
|
|
|
// thickness: 0,
|
|
|
|
|
// );
|
|
|
|
|
// },
|
|
|
|
|
// itemBuilder: (context, index) {
|
|
|
|
|
// return Container(
|
|
|
|
|
// color: ColorConsts.secondaryWhite,
|
|
|
|
|
// padding: EdgeInsets.all(8),
|
|
|
|
|
// child: Column(
|
|
|
|
|
// mainAxisSize: MainAxisSize.min,
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
// children: [
|
|
|
|
|
// Text(
|
|
|
|
|
// tangheemPropertyList[index].propertyText ?? "",
|
|
|
|
|
// style: TextStyle(fontWeight: FontWeight.bold, fontSize: 12, color: ColorConsts.secondaryOrange),
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(height: 4),
|
|
|
|
|
// Text(
|
|
|
|
|
// tangheemPropertyList[index].propertyValue ?? "",
|
|
|
|
|
// style: TextStyle(
|
|
|
|
|
// fontSize: 12,
|
|
|
|
|
// color: Color(
|
|
|
|
|
// Utils.stringToHex(tangheemPropertyList[index].textColor),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// );
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
);
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget discussionView(List<DiscussionModelData> _discussionList) {
|
|
|
|
|
|