Skip to content

Commit

Permalink
Merge pull request #622 from ibrahimozkn/hpi-studyu/fix/ui-fix
Browse files Browse the repository at this point in the history
fix: UI overflows
  • Loading branch information
ibrahimozkn authored May 25, 2024
2 parents 019541f + 22a958c commit d7498b2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/lib/screens/study/dashboard/dashboard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ class StudyFinishedPlaceholder extends StatelessWidget {
const fontSize = 30.0;
const textStyle = TextStyle(fontSize: fontSize);
final theme = Theme.of(context);
return Center(
return SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.fromLTRB(32, 32, 32, 32),
child: Column(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
Expand Down Expand Up @@ -79,7 +80,7 @@ class _TaskOverviewState extends State<TaskOverview> {
const SizedBox(height: 16),
Row(
children: [
Text(AppLocalizations.of(context)!.intervention_current, style: theme.textTheme.titleLarge),
Expanded(child: Text(AppLocalizations.of(context)!.intervention_current, style: theme.textTheme.titleLarge)),
const Spacer(),
Text(
'${widget.subject!.daysLeftForPhase(widget.subject!.getInterventionIndexForDate(DateTime.now()))} ${AppLocalizations.of(context)!.days_left}',
Expand Down
10 changes: 7 additions & 3 deletions app/lib/screens/study/report/report_history.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
Expand Down Expand Up @@ -61,9 +62,12 @@ class ReportHistoryItem extends StatelessWidget {
MdiIcons.fromString(subject.study.iconName) ?? MdiIcons.accountHeart,
color: isActiveStudy ? Colors.white : Colors.black,
),
Text(
subject.study.title!,
style: theme.textTheme.headlineSmall!.copyWith(color: isActiveStudy ? Colors.white : Colors.black),
const SizedBox(width: 16),
Expanded(
child: Text(
subject.study.title!,
style: theme.textTheme.headlineSmall!.copyWith(color: isActiveStudy ? Colors.white : Colors.black),
),
),
],
),
Expand Down

0 comments on commit d7498b2

Please sign in to comment.