NearHuscarl / flutter_login

Provides login screen with login/signup functionalities to help speed up development
MIT License
1.52k stars 808 forks source link

Screen become very lag after 2~5 min #335

Open yellowgraysu opened 2 years ago

yellowgraysu commented 2 years ago

Describe the bug The screen will become vey lag even doing nothing for 2~5 minutes.

To Reproduce Enter the page and do nothing for 5 minutes, the page will become very lag.

Information (please complete the following information):

[✓] Flutter (Channel stable, 3.0.2, on macOS 12.2.1 21D62 darwin-arm, locale zh-Hant-TW) • Flutter version 3.0.2 at /Users/grayhuang/development/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision cd41fdd495 (3 weeks ago), 2022-06-08 09:52:13 -0700 • Engine revision f15f824b57 • Dart version 2.17.3 • DevTools version 2.12.2

[✗] Android toolchain - develop for Android devices ✗ Unable to locate Android SDK. Install Android Studio from: https://developer.android.com/studio/index.html On first launch it will assist you in installing the Android SDK components. (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions). If the Android SDK has been installed to a custom location, please use flutter config --android-sdk to update to that location.

[✗] Xcode - develop for iOS and macOS ✗ Xcode installation is incomplete; a full installation is necessary for iOS development. Download at: https://developer.apple.com/xcode/download/ Or install Xcode via the App Store. Once installed, run: sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer sudo xcodebuild -runFirstLaunch ✗ CocoaPods not installed. CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see https://flutter.dev/platform-plugins To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).

[✓] VS Code (version 1.68.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.42.0

[✓] Connected device (2 available) • macOS (desktop) • macos • darwin-arm64 • macOS 12.2.1 21D62 darwin-arm • Chrome (web) • chrome • web-javascript • Google Chrome 103.0.5060.53

[✓] HTTP Host Availability • All required HTTP hosts are available

! Doctor found issues in 3 categories.

Minimum Reproducable code

code ```dart return FlutterLogin( onLogin: (_) { return null; }, onRecoverPassword: (_) { return null; }, ); ```

I think the bug is realted to AnimatedText or TransformerPageView, but not sure. Here is my minial reproducible code from source:

code ```dart return Material( child: TransformerPageView( itemCount: 5, transformer: CustomPageTransformer(), itemBuilder: (_, __) => ListView( children: [ TextFormField(), const Placeholder(fallbackHeight: 500), TextFormField(), const AnimatedText( text: 'somte text'), ], ), ), ); ```