Skip to content

Commit

Permalink
feat: screen utils init
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanRns committed May 7, 2024
1 parent 9d812e7 commit 698b0e5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
19 changes: 11 additions & 8 deletions evently/lib/main.dart
Original file line number Diff line number Diff line change
@@ -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(
Expand All @@ -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(),
));
}
}
8 changes: 8 additions & 0 deletions evently/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions evently/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 698b0e5

Please sign in to comment.