wrteam-jay / Elite-Quiz-Issues-Tracker

1 stars 0 forks source link

1 v/s 1 battle error #25

Open yogajiwanjaya opened 2 months ago

yogajiwanjaya commented 2 months ago

Describe the bug 1 vs 1 battle can't be fought against bots, it says battle begin but the screen can't switch to the question

Apart from that, 1 vs 1 play with friend --> create room can't get the code and category. if press the back button, a popup appears but when you press yes you can't switch to the main screen

1 2

app version 2.2.3

======== Exception caught by gesture =============================================================== The following _TypeError was thrown while handling a gesture: type 'BattleRoomFailure' is not a subtype of type 'BattleRoomCreated' in type cast

When the exception was thrown, this was the stack:

0 _CreateOrJoinRoomScreenState.showExitOrDeleteRoomDialog.onTapYes (package:flutterquiz/ui/screens/battle/create_or_join_screen.dart:1405:34)

1 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:351:24)

2 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:656:11)

3 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:313:5)

4 BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:246:7)

5 PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:703:9)

6 PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:98:12)

7 PointerRouter._dispatchEventToRoutes. (package:flutter/src/gestures/pointer_router.dart:143:9)

8 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:633:13)

9 PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:141:18)

10 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:127:7)

11 GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:501:19)

12 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:481:22)

13 RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:450:11)

14 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:426:7)

15 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:389:5)

16 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:336:7)

17 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:305:9)

18 _invoke1 (dart:ui/hooks.dart:328:13)

19 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:442:7)

20 _dispatchPointerDataPacket (dart:ui/hooks.dart:262:31)

wrteam-jay commented 2 months ago

Hi @yogajiwanjaya,

Thank you for bringing this to attention.

there was some issue in the api. we have fixed the issue. and it will be available in the next update.

if you are having this issue please reach out to us on Skype. we will provide you the file which you can replace to fix the issue.

wrteam-jay commented 2 months ago

we will keep this issue open till next update so others can also see it.