Comments (5)
fix on version 1.14.1-dev
from getx.
fix on version 1.14.1-dev
I Test it nw and its work very good Thank you for fast fix. ❤️
from getx.
When i use this version in master channel show this error and not show next page.
pubspec.yml:
get: ^1.14.0-dev
Screen:
Code:
Get.to(FirstLoginScreen(),transition: Transition.fade,duration: Duration(milliseconds: 100));
Flutter doctor:
[√] Flutter (Channel master, v1.18.1-pre.3, on Microsoft Windows [Version 10.0.17134.1365], locale en-US) • Flutter version 1.18.1-pre.3 at D:\java\flutter\flutter • Framework revision e3e189219b (19 hours ago), 2020-04-06 14:31:38 -0700 • Engine revision df257e59c2 • Dart version 2.8.0 (build 2.8.0-dev.20.0 1210d27678) [√] Android toolchain - develop for Android devices (Android SDK version 28.0.3) • Android SDK at E:\Android\sdk • Platform android-28, build-tools 28.0.3 • ANDROID_HOME = E:\Android\sdk • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [√] Android Studio (version 3.2) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin version 31.3.1 • Dart plugin version 181.5656 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [√] IntelliJ IDEA Community Edition (version 2018.2) • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.2.4 • Flutter plugin version 34.0.1 • Dart plugin version 182.5215 [√] VS Code, 64-bit edition (version 1.28.2) • VS Code at C:\Program Files\Microsoft VS Code • Flutter extension version 2.21.1 [√] Connected device (1 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.0 (API 24) (emulator) • No issues found!
Error:
ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: type 'Transition' is not a subtype of type 'bool' E/flutter (25785): #0 Get.to (package:get/src/get_main.dart:59:32) E/flutter (25785): #1 _SplashScreenState.goToNextPage.<anonymous closure> (package:amack_v4_backend/ui/screens/splash_screen.dart:57:9) E/flutter (25785): #2 _rootRun (dart:async/zone.dart:1180:38) E/flutter (25785): #3 _CustomZone.run (dart:async/zone.dart:1077:19) E/flutter (25785): #4 _CustomZone.runGuarded (dart:async/zone.dart:979:7) E/flutter (25785): #5 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1019:23) E/flutter (25785): #6 _rootRun (dart:async/zone.dart:1184:13) E/flutter (25785): #7 _CustomZone.run (dart:async/zone.dart:1077:19) E/flutter (25785): #8 _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1003:23) E/flutter (25785): #9 Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:23:15) E/flutter (25785): #10 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19) E/flutter (25785): #11 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5) E/flutter (25785): #12 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12) E/flutter (25785):
Thanks for your issue, I checked this out this morning.
This is a problem with the latest version of Dart and ternaries.
transition: GetPlatform.isIOS? Transition.cupertino: Transition.fade,
In any programming language in the universe, upon finding a Boolean, the instruction checks that there is nothing in front of it before treating the response as a Boolean. A Boolean is only a Boolean if at the end of the line (with a comma or semicolon) it still remains a Boolean.
It turns out that when it finds GetPlatform.isIOS, the compiler just stops, and treats it as an answer instead of checking if it is a ternary.
It's a behavior that shouldn't happen in any language, it didn't happen in Dart until the last development version, but I'll fix it on my own now, and I'll open an issue in dart: lang.
from getx.
Firstly Thank you very much for this awesome plugin , thank you for replying very fast in this issue.
i see this problem in dart in this line :
transition: transition ?? GetPlatform.isIOS
? Transition.cupertino
: Transition.fade,
from getx.
fix on version 1.14.1-dev
I will check it nw and tell you 👍
from getx.
Related Issues (20)
- Instance "GetLifeCycleBase?" is not registered.
- Drawer Menu disappear after changing app locale in drawer
- when I use Get.dialog() to show a dialog, then I use Get.back() back dialog, at the same time ,the page widget's getxController operator onClose(), how to solve this problem. HOT 3
- Get.dilog().adaptive()
- Create a Getx organization HOT 3
- GetX update. HOT 2
- hello please add material design 3 to this package , thank for persue. HOT 1
- [GETX] "AddWorkerController" deleted from memory but actually not deleted HOT 1
- Displaying a Snackbar that is does not use the full width makes buttons on that height unclickable.
- [Flutter 3.16.5][GetX-5_RC5] PopScope issue HOT 12
- Error: Undefined name 'required'.
- Memory leaks HOT 1
- Can get.to specify context? HOT 1
- RxList in Getx bindStream, but Obx keep get old data emmited
- Nested GetRouterOutlet not working as expected HOT 2
- UI Not Updating with Switch/Toggle in ListView using GetX Controller
- Back button in browser don't behave the same as Get.back()
- Reactive variable observation issues HOT 2
- 是否可以在 GetMiddleware 中拿到正确的 arguments 值
- The GetxController is not automatically deleted if it is the first child of GetMaterialApp HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from getx.