728x90

 Flutter 츠누봇 [Pull Request] :: 의존성 추가, 화면 비율 설정

https://github.com/cnu-bot/cnubot-client-app/pull/3

 

Add dependencies, Add Pull Request Template and Set the reference design size ratio to iPhone 12 mini for easy UI development. (

Description #1 #2 #4 Fixes #1 #2 #4 Type of change New feature (non-breaking change which adds functionality) This change requires a documentation update Checklist: My code follows the s...

github.com

 

1. 요구사항

- 의존성 추가

- 화면 비율 설정

 

2. 작업 내용

의존성 추가

cupertino_icons: ^1.0.2
freezed_annotation: ^2.1.0
json_annotation: ^4.6.0
http: ^0.13.5
get: ^4.6.5
url_launcher: ^6.1.5
cached_network_image: ^3.2.1
shimmer: ^2.0.0
intl: ^0.17.0
device_info_plus: ^3.2.4
flutter_screenutil: ^5.5.3+2
flutter_local_notifications: ^9.7.0
flutter_native_timezone: ^2.0.0
carousel_slider: ^4.1.1
url_launcher: ^6.1.5
flutter_dotenv: ^5.0.2
hive: ^2.2.3
hive_flutter: ^1.1.0
flutter_launcher_icons: ^0.10.0

 

화면 비율 설정 (375, 812)

return ScreenUtilInit(
      designSize: const Size(375, 812),
      minTextAdapt: true,
      builder: (context, child) {
        return GetMaterialApp(
          debugShowCheckedModeBanner: false,
          title: 'cnubot',
          initialRoute: Routes.HOME,
          initialBinding: AppBinding(),
          getPages: AppPages.routes,
          theme: ThemeData(
            primarySwatch: Colors.blue,
          ),
        );
      },
    );

 

3. 코드리뷰

- 불필요한 용량을 차지하기 때문에 현재 필요없는 의존성(dependencies)들 제거하기

 

4. Merge

 

 

+ Recent posts