
[Flutter] Splash Screen(앱 시작 화면) 만들기 우선 flutter_native_splash 패키지를 설치한다. flutter pub add flutter_native_splash 패키지 설치 후 pubspec.yaml 파일에 설정값을 입력하거나flutter_native_splash.yaml 파일을 만들어서 설정값을 입력해도 된다. flutter_native_splash: color: "#ffffff" image: assets/images/logo.png # 안드로이드12버전 이상은 따로 설정 해줘야 한다. android_12: image: assets/images/android12_log.png # 그 외에 빌드 환경별로 설정 할 수 있다. ..

[Flutter] GetIt 패키지를 이용한 Service Locator 전역 상태 관리 class UserService extends ChangeNotifier { UserService(); User? get user => _user; User? _user; set user(User? user) { _user = user; // 값 변경을 알려주는 notifyListeners 추가. notifyListeners(); }}void main() { // GetIt을 이용해서 전역상태 관리를 할 객체 Service Locator 등록 GetIt.I.registerSingleton(UserService()); runApp(const MyApp());}class MyApp exte..

[Flutter] JsonSerialize(encode / decode) 클래스 맴버로 toJson, fromJson 메서드를 만들어 준 후dart:convert 라이브러리의 jsonEncode, jsonDecode 함수로 변환해준다. https://api.flutter.dev/flutter/dart-convert/jsonEncode.html jsonEncode function - dart:convert library - Dart APIjsonEncode function String jsonEncode(Object? object, {Object? toEncodable(Object? nonEncodable )?} ) Converts object to a JSON string. If value contain..

[Flutter] SliverList 중 고정되는 항목 만들기 SliverPersistentHeader widget의 pnned 요소를 true로 해서 CustomScrollView widget의 slivers에 추가해준다.SliverPersistentHeader는 스크롤 될 때 ScrollView 상단에서 고정되는걸 볼 수 있다.class _MyHomePageState extends State { @override Widget build(BuildContext context) { return Scaffold( body: Column( children: [ Expanded( child: CustomScrollView( ..

[Flutter] ListView 오류 Vertical viewport was given unbounded height. The following assertion was thrown during performResize(): Vertical viewport was given unbounded height. Viewports expand in the scrolling direction to fill their container. In this case, a vertical viewport was given an unlimited amount of vertical space in which to expand. This situation typically happens when a scrollable wid..

[Flutter] IntelliJ 프로젝트 생성 시 Unable to find git in your PATH Unable to find git in your PATH 오류가 나오면서 프로젝트 생성이 실패한다. git config --global --add safe.directory '*' 위 명령어로 해결했다. [참조] https://github.com/flutter/flutter/issues/123995
- Total
- Today
- Yesterday
- eGovFrame
- Spring
- Entity Framework Core
- Eclipse
- php
- high1
- 이클립스
- .NET Core
- CentOS
- MySQL
- Windows
- dotnet core
- 전자정부
- 스프링
- Fedora
- Java
- egoverment
- jQuery
- MariaDB
- JSP
- express
- Linux
- DART
- egov
- c#
- Flutter
- ubuntu
- 하이원
- 자바
- asp.net core
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |