bhavin feedback changes done

This commit is contained in:
Surendiran 2025-04-15 17:01:20 +05:30
parent a3c9f8c708
commit 080e2368e9
6 changed files with 106 additions and 101 deletions

View File

@ -20,12 +20,12 @@ if (project.hasProperty('google-services.json')) {
def flutterVersionCode = localProperties.getProperty("flutter.versionCode")
if (flutterVersionCode == null) {
flutterVersionCode = "49"
flutterVersionCode = "50"
}
def flutterVersionName = localProperties.getProperty("flutter.versionName")
if (flutterVersionName == null) {
flutterVersionName = "1.0.48"
flutterVersionName = "1.0.49"
}
def keystorePropertiesFile = rootProject.file("key.properties")

View File

@ -2256,15 +2256,15 @@ class _ChartScreen1State extends ConsumerState<ChartScreen1> {
mainTopic,
style: TextStyle(
color: Colors.white,
fontSize: 26,
fontWeight: FontWeight.w400,
fontSize: 28,
fontWeight: FontWeight.w600,
fontFamily: 'Roboto'),
),
Container(
width: mywidth / 7,
height: 1.5,
child: Divider(
thickness: 3,
thickness: 4,
color: Colors.white,
)),
Text(
@ -2273,7 +2273,7 @@ class _ChartScreen1State extends ConsumerState<ChartScreen1> {
style: TextStyle(
color: Colors.white,
fontSize: 20,
fontWeight: FontWeight.w400,
fontWeight: FontWeight.w500,
fontFamily: 'Roboto'),
),
],
@ -2838,7 +2838,7 @@ class CardWidget extends StatelessWidget {
elevation: 2,
child: Container(
// height: cardHeight,
height: 175,
height: 158 ,
padding: const EdgeInsets.only(
left: 16.0, right: 16.0, bottom: 2.0, top: 1.0),
decoration: BoxDecoration(
@ -2969,7 +2969,7 @@ class CardWidget extends StatelessWidget {
elevation: 0, // Remove shadow to keep only the outli
child: Container(
height: 175,
height: 158,
padding: const EdgeInsets.all(10.0),
// padding: const EdgeInsets.only(
// left: 10.0, right: 10.0, bottom: 5.0, top: 1.0),

View File

@ -276,6 +276,14 @@ class ChartWidget extends StatelessWidget {
) {
debugPrint('Chart Data: ${jsonEncode(chartData)}');
// var groupByKeyValue;
// if (chartData['chart_type_json']['chart_type'] == 'bar_chart_horizontal' ||
// chartData['chart_type_json']['chart_type'] == 'horizontal_rotate') {
// groupByKeyValue = chartData['chart_type_json']['y_group'] ?? '';
// } else {
// groupByKeyValue = chartData['chart_type_json']['x_group'] ?? '';
// }
return chartData['response'].asMap().entries.map<PieChartSectionData>((
entry,
) {
@ -285,6 +293,7 @@ class ChartWidget extends StatelessWidget {
// Handle different types: int, double, and String
double value = 0.0;
var rawValue = data['ObsValue']['Value'];
// String title = data['ObsKey'][groupByKeyValue] ?? '';
if (rawValue is String) {
value = double.tryParse(rawValue) ?? 0.0;
@ -1172,27 +1181,27 @@ class ChartWidget extends StatelessWidget {
),
),
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Wrap(
spacing: 12,
runSpacing: 8,
children: groupByValues.map((group) {
return Row(
mainAxisSize: MainAxisSize.min,
children: [
Container(
width: 12,
height: 12,
color: groupColorMap[group],
),
SizedBox(width: 6),
Text(group, style: TextStyle(fontSize: 14)),
],
);
}).toList(),
),
),
// Padding(
// padding: const EdgeInsets.all(8.0),
// child: Wrap(
// spacing: 12,
// runSpacing: 8,
// children: groupByValues.map((group) {
// return Row(
// mainAxisSize: MainAxisSize.min,
// children: [
// Container(
// width: 12,
// height: 12,
// color: groupColorMap[group],
// ),
// SizedBox(width: 6),
// Text(group, style: TextStyle(fontSize: 14)),
// ],
// );
// }).toList(),
// ),
// ),
],
);
case 'line_trend_population':
@ -1749,20 +1758,21 @@ class ChartWidget extends StatelessWidget {
top: 8.0,
left: 75.0,
),
child: SizedBox(
width:
60, // Limit width to force wrapping
// child: SizedBox(
// width:
// 60, // Limit width to force wrapping
child: Transform.rotate(
// angle: -0.5,
angle: -1.5,
child: TooltipTheme(
child: TooltipTheme(
data: TooltipThemeData(
decoration: BoxDecoration(
color: Colors.blueGrey[
800], // Change background color
color: Colors
.black, // Change background color
// color: Colors.blueGrey[800], // Change background color
borderRadius:
BorderRadius.circular(
BorderRadius.circular(
8,
), // Optional: rounded corners
),
@ -1770,40 +1780,24 @@ class ChartWidget extends StatelessWidget {
color: Colors.white,
), // Change text color
),
child: TooltipTheme(
data: TooltipThemeData(
decoration: BoxDecoration(
color: Colors
.black, // Change background color
// color: Colors.blueGrey[800], // Change background color
borderRadius:
BorderRadius.circular(
8,
), // Optional: rounded corners
),
textStyle: TextStyle(
color: Colors.white,
), // Change text color
),
child: Tooltip(
message: title,
child: Text(
// title,
displayTitle,
softWrap: true,
textAlign:
TextAlign.right,
style: TextStyle(
fontSize: 10,
),
overflow:
TextOverflow.ellipsis,
child: Tooltip(
message: title,
child: Text(
// title,
displayTitle,
softWrap: true,
textAlign:
TextAlign.right,
style: TextStyle(
fontSize: 10,
),
overflow:
TextOverflow.ellipsis,
),
),
),
),
),
// ),
);
}
return Container();

View File

@ -1258,7 +1258,7 @@ class EconomyStatsState extends ConsumerState<EconomyStatsWidget> {
),
),
SizedBox(
height: myheight / 4.8, // Set dynamic height
height: myheight / 4.5, // Set dynamic height
child: Container(
key: mainTopic['main_topic'] == firstMainTopic
? cardsKey
@ -1488,13 +1488,13 @@ class InfoCard extends StatelessWidget {
'/chartScreen/$dataset?bgColor=$colorPattern&mainTopic=$encodedMainTopic&title=$encodedTitle&key=$encodedKey');
},
child: Container(
height: myheight / 12,
height: myheight / 10.9,
width: mywidth / 4,
margin: const EdgeInsets.symmetric(horizontal: 8),
// padding: const EdgeInsets.all(10),
padding: const EdgeInsets.only(bottom: 1, top: 1, left: 10, right: 10),
padding: const EdgeInsets.only(bottom: 0.5, top: 1, left: 10, right: 10),
decoration: BoxDecoration(
border: Border.all(color: bordercolor),
borderRadius: BorderRadius.circular(8),
@ -1527,37 +1527,48 @@ class InfoCard extends StatelessWidget {
Text(
title,
style: const TextStyle(
// fontSize: 11,
fontSize: 12,
fontSize: 11,
fontWeight: FontWeight.w400,
letterSpacing: 0,
// color: Colors.black,
fontFamily: 'Roboto',
color: Color(0xFF000000),
),
),
const SizedBox(height: 0.3),
Flexible(
fit: FlexFit.loose,
child: FittedBox(
fit: BoxFit.contain,
child: Column(
children: [
Text(
subtitle,
textAlign: TextAlign.center,
style: const TextStyle(
// fontSize: 11,
fontSize: 12 * 1.1,
fontFamily: 'Roboto',
fontWeight: FontWeight.w400,
color: Color(0xFF8E8E8E),
),
),
],
),
Text(
subtitle,
textAlign: TextAlign.center,
style: const TextStyle(
fontSize: 11,
// fontSize: 12 * 1.1,
fontFamily: 'Roboto',
fontWeight: FontWeight.w400,
color: Color(0xFF8E8E8E),
),
),
// Flexible(
// fit: FlexFit.loose,
// child: FittedBox(
// fit: BoxFit.contain,
// child: Column(
// children: [
// Text(
// subtitle,
// textAlign: TextAlign.center,
// style: const TextStyle(
// // fontSize: 11,
// fontSize: 12 * 1.1,
// fontFamily: 'Roboto',
// fontWeight: FontWeight.w400,
// color: Color(0xFF8E8E8E),
// ),
// ),
// ],
// ),
// ),
// ),
const SizedBox(height: 1),
// Flexible(
@ -1568,7 +1579,7 @@ class InfoCard extends StatelessWidget {
Text(
value,
style: TextStyle(
fontSize: 18,
fontSize: 26,
fontWeight: FontWeight.w900,
fontFamily: 'Roboto',
color: textcolor ?? Colors.black,

View File

@ -747,7 +747,7 @@ class _BaseScaffoldState extends ConsumerState<BaseScaffold> {
scrolledUnderElevation: 0,
titleSpacing: 0,
backgroundColor: widget.appbarColor ?? Colors.white,
leadingWidth: widget.showBackButton ? mywidth * 0.25 : null,
leadingWidth: widget.showBackButton ? mywidth * 0.18 : null,
bottom: widget.showDivider
? PreferredSize(
preferredSize: Size.fromHeight(1), // Height of the line
@ -1073,8 +1073,8 @@ class _BaseScaffoldState extends ConsumerState<BaseScaffold> {
color: _getSelectedIndex(currentRoute) == 0
? Colors.black
: Color(0xFF989898),
width: 20,
height: 20,
width: 23.98,
height: 25,
),
),
// label: 'Home',
@ -1090,8 +1090,8 @@ class _BaseScaffoldState extends ConsumerState<BaseScaffold> {
color: _getSelectedIndex(currentRoute) == 1
? Colors.black
: Color(0xFF989898),
width: 20,
height: 20,
width: 23.98,
height: 25,
),
),
// label: 'UAE Numbers'
@ -1106,8 +1106,8 @@ class _BaseScaffoldState extends ConsumerState<BaseScaffold> {
color: _getSelectedIndex(currentRoute) == 2
? Colors.black
: Color(0xFF989898),
width: 20,
height: 20,
width: 23.98,
height: 25,
),
),
// label: 'Competitiveness',
@ -1122,8 +1122,8 @@ class _BaseScaffoldState extends ConsumerState<BaseScaffold> {
color: _getSelectedIndex(currentRoute) == 3
? Colors.black
: Color(0xFF989898),
width: 20,
height: 20,
width: 23.98,
height: 25,
),
),
// label: 'Country Profile',

View File

@ -1,7 +1,7 @@
name: uae_stat
description: "View statistics about the UAE from the Federal Center for Statistics and Competitiveness."
publish_to: "none"
version: 1.0.48+49
version: 1.0.49+50
environment:
sdk: ">=3.2.3 <4.0.0"