diff --git a/evently/lib/main.dart b/evently/lib/main.dart index e69a44e404..5ebe108c9f 100644 --- a/evently/lib/main.dart +++ b/evently/lib/main.dart @@ -1,5 +1,6 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; void main() { runApp( @@ -24,13 +25,15 @@ class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { - return MaterialApp( - title: 'Evently', - theme: ThemeData( - colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), - useMaterial3: true, - ), - home: const Placeholder(), - ); + return ScreenUtilInit( + minTextAdapt: true, + builder: (BuildContext context, child) => MaterialApp( + title: 'Evently', + theme: ThemeData( + colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), + useMaterial3: true, + ), + home: const Placeholder(), + )); } } diff --git a/evently/pubspec.lock b/evently/pubspec.lock index 61d3ba1aeb..8af3e0b22a 100644 --- a/evently/pubspec.lock +++ b/evently/pubspec.lock @@ -115,6 +115,14 @@ packages: description: flutter source: sdk version: "0.0.0" + flutter_screenutil: + dependency: "direct main" + description: + name: flutter_screenutil + sha256: "8cf100b8e4973dc570b6415a2090b0bfaa8756ad333db46939efc3e774ee100d" + url: "https://pub.dev" + source: hosted + version: "5.9.0" flutter_test: dependency: "direct dev" description: flutter diff --git a/evently/pubspec.yaml b/evently/pubspec.yaml index 3676e656ea..a936584545 100644 --- a/evently/pubspec.yaml +++ b/evently/pubspec.yaml @@ -36,6 +36,7 @@ dependencies: # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.6 easy_localization: ^3.0.6 + flutter_screenutil: ^5.9.0 dev_dependencies: flutter_test: