Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MoonTextInput has compile error in Flutter 3.13 #244

Closed
vital-edu opened this issue Aug 28, 2023 · 1 comment
Closed

MoonTextInput has compile error in Flutter 3.13 #244

vital-edu opened this issue Aug 28, 2023 · 1 comment

Comments

@vital-edu
Copy link

Steps to reproduce

  1. Use Flutter 3.13
  2. Add moon_design as a dependency
  3. Use MoonTextInput
  4. Compile the project

The SlottedContainerRenderObjectMixin mixin requires two generic types instead of one since Flutter 3.13 (flutter/flutter#126108, commit diff):

class _RenderDecoration extends RenderBox with SlottedContainerRenderObjectMixin<_DecorationSlot> {

Expected result

App runs without issues

Actual results

Compilation error:

Failed to build iOS app
Error: moon_design-0.28.1/lib/src/widgets/text_input/input_decorator.dart:692:48: Error: Expected 2 type arguments.

Could not build the application for the simulator.
Error launching application on iPhone 14 Pro Max.

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.13.1, on macOS 13.5 22G74 darwin-arm64 (Rosetta), locale en-EE)
    • Flutter version 3.13.1 on channel stable at /Users/eduardo.cunha/.puro/envs/stable/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision e1e47221e8 (5 days ago), 2023-08-22 21:43:18 -0700
    • Engine revision b20183e040
    • Dart version 3.1.0
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/eduardo.cunha/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • ANDROID_HOME = /Users/eduardo.cunha/Library/Android/sdk
    • Java binary at: /Users/eduardo.cunha/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/221.6008.13.2211.9477386/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14B47b
    • CocoaPods version 1.12.1

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

[✓] Android Studio (version 2022.1)
    • Android Studio at /Users/eduardo.cunha/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/221.6008.13.2211.9477386/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

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

[✓] Connected device (3 available)
    • iPhone 14 Pro Max (mobile) • CA11C664-FB27-4D96-94DD-5A1A507E617D • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-1 (simulator)
    • macOS (desktop)            • macos                                • darwin-arm64   • macOS 13.5 22G74 darwin-arm64 (Rosetta)
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 116.0.5845.110

[✓] Network resources
    • All expected network resources are available.
@Kypsis
Copy link
Collaborator

Kypsis commented Sep 9, 2023

This should now be fixed as of 0.29.x as there is no more dependency on InputDecorator and InputDecoration

@Kypsis Kypsis closed this as completed Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants