전체 글
-
Undefined class 'StreamSubscription'. Try changing the name to the name of an existing classFlutter/errors and solved 2020. 5. 15. 13:02
I am trying to use the StreamSubscription class, but it causes the following error and prevents execution.I am trying to use the StreamSubscription class, but it causes the following error and prevents execution. Undefined class 'StreamSubscription'. Try changing the name to the name of an existing class, or creating a class with the name 'StreamSubscription'. It is called an undefined class. In..
-
This requires the 'extension-methods' experiment to be enabled.Flutter/errors and solved 2020. 5. 15. 12:59
An error may occur when trying to use an extension in Flutter as shown below. extension NumberParsing on String { int parseInt() { return int.parse(this); } double parseDouble() { return double.parse(this); } } There is no highlight in the extension text itself, and the error messages are: error: This requires the 'extension-methods' experiment to be enabled. (experiment_not_enabled at [ble_flut..
-
Flutter-Missing case clause for 'active'. Try adding a case clause for the missing constant, or ...Flutter/errors and solved 2020. 5. 15. 12:54
If you import and apply Flutter source code, the following error may occur in the following switch statement. Missing case clause for 'active'. Try adding a case clause for the missing constant, or adding a default clause. It's a warning, not an error, but it's a very poignant phrase. As the 'active' item is missing from the case statement, it is required to add 'active' or add a default stateme..
-
Flutter App Screen SizeFlutter/mobile 2020. 5. 13. 19:42
To get the screen size in Flutter, we use a class called MediaQuery. In addition to the screen size, Mediaquery contains system information of various devices. (Text magnification, 24 hour format, device orientation, etc.) Here's how to read the screen information using MediaQuery: MediaQuery.of(context).size // App screen size size Ex> Size (360.0, 692.0) MediaQuery.of(context).size.height // A..
-
Flutter Singleton classFlutter/mobile 2020. 5. 13. 19:39
I tried to use Singleton in Flutter, but I was able to create a singleton class very simply. In Flutter's language, Dart, class creation in general is not much different from any other programming language. General class example class Normal { Normal () {// constructor // Initialization code } } In the case of the singleton class, we can easily create a class using the factory keyword. For refer..
-
Flutter Back ButtonFlutter/mobile 2020. 5. 13. 19:32
In the case of Android, there is a function that moves to the previous page (Activity) by pressing the Back Key or Back Button on the bar at the bottom. In Java or Kotlin, you can make the back key ignorable using the onBackPressed or onKeyDown function. Or you can double click to quit. It is said that a class called WillPopScope is used to use these functions in Flutter. WillPopScope is said to..
-
Minimum supported Gradle version is 5.4.1. Current version is 5.1.1. If using the gradle wrapper...Flutter/errors and solved 2020. 5. 12. 16:01
project \> flutter run --release The following error occurred when trying to build the Flutter project with the Release Version. FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\Dong\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\shared_preferences_macos-0.0.1+7\android\build.gradle' line: 22 * What went wrong: A problem occurred evaluating root project 'shared_prefe..
-
Modifying the Flutter package-applied as an internal projectFlutter/mobile 2020. 5. 12. 15:40
The original article for this is at the link below. https://blog.naver.com/chandong83/221876364791 Flutter(플러터) 패키지(Package) 수정하기 - with GitHub 지난번 "QR 코드 스캔" 패키지를 이용해 아주 간단하게 "QR 코드 스캔" 예제를 제... blog.naver.com https://blog.naver.com/chandong83/221872148573 Flutter(플러터) QR 코드 스캔(QR Code Scan) 초간단 예제(Simple example) 위 Flutter(Dart) 패키지 사이트에 접속해 qrcode를 검색하면 많은 패키지들이 보일 것이다.위 리스트 중... blog.naver.c..