Skip to content

Commit

Permalink
Merge pull request #2430 from airqo-platform/staging
Browse files Browse the repository at this point in the history
move to production
  • Loading branch information
Baalmart authored Jan 29, 2025
2 parents 61effbd + 5f32ecc commit bf5d7fa
Show file tree
Hide file tree
Showing 4 changed files with 229 additions and 172 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class AnalyticsCard extends StatelessWidget {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(measurement.siteDetails!.locationName ?? "",
Text(measurement.siteDetails!.name ?? "",
style: TextStyle(
fontSize: 28,
fontWeight: FontWeight.w700,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,14 @@ class _AnalyticsForecastWidgetState extends State<AnalyticsForecastWidget> {

double _getResponsiveHeight(BuildContext context) {
final screenHeight = MediaQuery.of(context).size.height;
// Calculate height based on screen size, with minimum and maximum bounds
final height = screenHeight * 0.1; // 10% of screen height
return height.clamp(60.0, 100.0); // Min 60, max 100
final height = screenHeight * 0.1;
return height.clamp(60.0, 100.0);
}

double _getResponsiveIconSize(BuildContext context) {
final screenWidth = MediaQuery.of(context).size.width;
// Calculate icon size based on screen width
final iconSize = screenWidth * 0.04; // 4% of screen width
return iconSize.clamp(20.0, 30.0); // Min 20, max 30
final iconSize = screenWidth * 0.04;
return iconSize.clamp(20.0, 30.0);
}

double _getResponsiveMargin(BuildContext context) {
Expand Down
2 changes: 1 addition & 1 deletion mobile-v3/lib/src/app/learn/pages/lesson_finished.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class LessonFinishedWidget extends StatelessWidget {
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text("👋🏼 Great Job Jordan!",
Text("👋🏼 Great Job !",
style: TextStyle(fontSize: 20, fontWeight: FontWeight.w700)),
Text(
"You can invite your friends to learn a thing about Air Pollution",
Expand Down
Loading

0 comments on commit bf5d7fa

Please sign in to comment.