soulcure / discord-ui-clone

flutter discord ui clone
Apache License 2.0
6 stars 0 forks source link

Unable to run #1

Open jtkeyva opened 2 years ago

jtkeyva commented 2 years ago

Hey, wanted to try it out but i can't get it to run. Running Flutter SDK 2.2.0 and getting this error:

`Command PhaseScriptExecution failed with a nonzero exit code

Showing Recent Messages lib/utils/event_bus.dart:30:29: Error: The argument type 'void Function(T/1/)' can't be assigned to the parameter type 'void Function(T/2/)'.

lib/utils/event_bus.dart:34:26: Error: The argument type 'void Function(T)' can't be assigned to the parameter type 'void Function(dynamic)'.

eventBus.on().listen(func);

                     ^

`

Any help appreciated. Thanks!

nomanmaniyar commented 2 years ago

Hey, wanted to try it out but i can't get it to run. Running Flutter SDK 2.2.0 and getting this error:

`Command PhaseScriptExecution failed with a nonzero exit code

Showing Recent Messages lib/utils/event_bus.dart:30:29: Error: The argument type 'void Function(T/1/)' can't be assigned to the parameter type 'void Function(T/2/)'.

  • 'T/1/' is from 'unknown'.
  • 'T/2/' is from 'package:discordclone/utils/event_bus.dart' ('lib/utils/event_bus.dart'). eventBus.on().listen(func);
                       ^

lib/utils/event_bus.dart:34:26: Error: The argument type 'void Function(T)' can't be assigned to the parameter type 'void Function(dynamic)'.

eventBus.on().listen(func);

                     ^

`

Any help appreciated. Thanks!

SAME ERROR ON MY SIDE ALSO