oguzhnatly / flutter_carplay

🚗 Apple CarPlay for Flutter Apps. Aims to make it safe to use apps made with Flutter in the car by integrating with CarPlay.
https://pub.dev/packages/flutter_carplay
MIT License
217 stars 63 forks source link

[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: NoSuchMethodError: Class 'CPTabBarTemplate' has no instance getter 'sections'. #36

Open ghost opened 2 years ago

ghost commented 2 years ago

I have set CPTabBarTemplate as a root template. on click of any CPListItem we are pushing CPListTemplate and methods "self.setDetailText" cause below error -

`[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: NoSuchMethodError: Class 'CPTabBarTemplate' has no instance getter 'sections'. Receiver: Instance of 'CPTabBarTemplate' Tried calling: sections

0 Object.noSuchMethod (dart:core-patch/object_patch.dart:38:5)

1 FlutterCarPlayController.updateCPListItem.

package:flutter_carplay/controllers/carplay_controller.dart:76

` Here is the Code - [https://gist.github.com/Subhangi3/168c917dfb34e6eabdfcd2ecb6423e7e](https://gist.github.com/Subhangi3/168c917dfb34e6eabdfcd2ecb6423e7e)