oguzhnatly/flutter_carplay

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

Subhangi3 opened this issue · 0 comments

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.<anonymous closure> package:flutter_carplay/controllers/carplay_controller.dart:76 <asynchronous suspension>

Here is the Code - https://gist.github.com/Subhangi3/168c917dfb34e6eabdfcd2ecb6423e7e