Skip to content

Commit

Permalink
🐛 Adapted font size
Browse files Browse the repository at this point in the history
  • Loading branch information
PHPLukaas committed Apr 4, 2024
1 parent ca89313 commit b7d8336
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
7 changes: 7 additions & 0 deletions frontend/app_student/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ class MyApp extends StatelessWidget {
Locale('fr'),
],
routerConfig: router,
builder: (context, child) {
return MediaQuery(
data: MediaQuery.of(context)
.copyWith(textScaler: const TextScaler.linear(1.0)),
child: child!,
);
},
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class EventCard extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Card(
color: CustomTheme.primaryColor.withOpacity(0.5),
color: CustomTheme.primaryColor.withOpacity(0.1),
child: Container(
decoration: const BoxDecoration(
border: Border(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ class EventHours extends StatelessWidget {
width: 50,
child: Column(
children: [
Text(event.horaires.startAt, style: CustomTheme.text.toBold),
Text(event.horaires.endAt, style: CustomTheme.text.toBold),
FittedBox(
child: Text(event.horaires.startAt, style: CustomTheme.text.toBold),
),
FittedBox(
child: Text(event.horaires.endAt, style: CustomTheme.text.toBold),
),
],
),
);
Expand Down

0 comments on commit b7d8336

Please sign in to comment.