Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
405 views
in Technique[技术] by (71.8m points)

flutter - Mapbox bug, dark screen on Navigator push

i wanted to test MapboxGL using this package https://github.com/apptreesoftware/flutter_map .

I'm testing on Nokia 5.3 , Android 10 .

So when i test it , launching the screen directly from the Main.dart , it works fine with the markers and everything .

But when i try to go to that screen after clicking on a button, i get a black screen .

Pubspec.yaml 

environment:
sdk: ">=2.8.0 <3.0.0"
dependencies:
  flutter:
    sdk: flutter
flutter_map: any #Test map
flutter_map_marker_cluster: any

so like i said when i try to reach the screen like this

InkWell(
  child: Icon(
    FontAwesomeIcons.mapMarkerAlt,
  size: 12,
  color: HexColor('#54D3C2'),),
  onTap: () {
    Navigator.of(context).push(
      MaterialPageRoute(
        builder: (BuildContext context) {
          return TestMapPage();
        },
      ),);
 },

)

and i get these in my console .

I/flutter (27236): Another exception was thrown: There are multiple heroes that share the 
same tag within a subtree.
W/mple.sportsens(27236): Accessing hidden method Lsun/misc/Unsafe;- >getUnsafe()Lsun/misc/Unsafe; (greylist,core-platform-api, linking, allowed)
W/mple.sportsens(27236): Accessing hidden method Lsun/misc/Unsafe;- >objectFieldOffset(Ljava/lang/reflect/Field;)J (greylist,core-platform-api, linking, allowed)
W/mple.sportsens(27236): Accessing hidden method Lsun/misc/Unsafe;->compareAndSwapObject(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Z (greylist, linking, allowed)
W/mple.sportsens(27236): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...