states_rebuilder icon indicating copy to clipboard operation
states_rebuilder copied to clipboard

Error with flutter 3.19 and use of navigation_builder library

Open JgomesAT opened this issue 1 year ago • 3 comments

Project can compile because your library use navigation_builder

pub-cache/hosted/pub.dev/navigation_builder-0.0.3/lib/src/rm_scaffold.dart:102:3: Error: Expected 0 type arguments. PersistentBottomSheetController<T> showBottomSheet<T>( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../../../../.pub-cache/hosted/pub.dev/navigation_builder-0.0.3/lib/src/rm_scaffold.dart:124:29: Error: Expected 0 type arguments. final r = scaffoldState.showBottomSheet<T>( ^ Unhandled exception: Unsupported operation: Unsupported invalid type InvalidType() (InvalidType). Encountered while compiling file:///Users/jorgegomes/.pub-cache/hosted/pub.dev/navigation_builder-0.0.3/lib/src/navigation_builder.dart, which contains the type: FunctionType( Function<T>(Widget, {backgroundColor: Color?, clipBehavior: Clip?, constraints: BoxConstraints?, elevation: double?, enableDrag: bool?, shape: ShapeBorder?, transitionAnimationController: AnimationController?})). #0 ProgramCompiler._typeCompilationError (package:dev_compiler/src/kernel/compiler.dart:3678) #1 ProgramCompiler._newEmitType (package:dev_compiler/src/kernel/compiler.dart:3471) #2 ProgramCompiler._emitType (package:dev_compiler/src/kernel/compiler.dart:3379) #3 ProgramCompiler.visitFunctionType (package:dev_compiler/src/kernel/compiler.dart:3731) #4 ProgramCompiler._emitClassSignature (package:dev_compiler/src/kernel/compiler.dart:1822) #5 ProgramCompiler._emitClassDeclaration (package:dev_compiler/src/kernel/compiler.dart:993) #6 ProgramCompiler._emitClass (package:dev_compiler/src/kernel/compiler.dart:846) #7 List.forEach (dart:core-patch/growable_array.dart:416) #8 ProgramCompiler._emitLibrary (package:dev_compiler/src/kernel/compiler.dart:784) #9 List.forEach (dart:core-patch/growable_array.dart:416) #10 ProgramCompiler.emitModule (package:dev_compiler/src/kernel/compiler.dart:505) #11 IncrementalJavaScriptBundler.compile (package:frontend_server/src/javascript_bundle.dart:223) #12 FrontendCompiler.writeJavaScriptBundle (package:frontend_server/frontend_server.dart:794) #13 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:654) #14 listenAndCompile. (package:frontend_server/frontend_server.dart:1303) Failed to compile application.

JgomesAT avatar Feb 16 '24 10:02 JgomesAT

check https://github.com/GIfatahTH/navigation_builder/issues/6

or try my patch

  states_rebuilder:
    git:
      url: [email protected]:karnadii/states_rebuilder.git
      ref: 3.19-patch
      path: states_rebuilder_package/

karnadii avatar Feb 17 '24 06:02 karnadii

I have an error with this repo:

[email protected]: Permission denied (publickey). fatal: Could not read from remote repository.

JgomesAT avatar Feb 19 '24 07:02 JgomesAT

image

soufianebenyaala avatar Feb 19 '24 10:02 soufianebenyaala