我收到一个 Flutter 项目的错误。我将开始一个一个地停用插件,并希望找出其中一个是否导致了问题。在那之前,如果有人有建议,我会留在这里。
Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
E/GoogleMapController(29124): Cannot enable MyLocation layer as location permissions are not granted
dependencies:
flutter:
sdk: flutter
firebase_auth: ^0.15.5+2
cloud_firestore: ^0.13.5
firebase_storage: ^3.1.3
firebase_core: ^0.4.4+3
provider: ^4.1.2
google_sign_in: ^4.4.6
google_maps_flutter: ^0.5.28
latlong: ^0.6.1
flappy_search_bar: ^1.7.2
http: ^0.12.1
image_cropper: ^1.2.1
image_picker: ^0.6.3+4
geolocator: ^5.3.1
Doctor summary (to see all details, run flutter doctor -v):
[?] Flutter (Channel stable, v1.17.1, on Mac OS X 10.15.4 19E287, locale …Run Code Online (Sandbox Code Playgroud) 在做了一些研究之后,我试图用 ListTiles 包装InkWell以获得onTap涟漪效应,但它似乎不起作用。这就是我所拥有的:
return AnimationLimiter(
child: Scrollbar(
child: ListView.builder(
shrinkWrap: true,
itemCount: widget.myItems.length,
itemBuilder: (context, index) => AnimationConfiguration.staggeredList(
position: index,
duration: const Duration(milliseconds: 300),
child: SlideAnimation(
verticalOffset: 50.0,
child: FadeInAnimation(
child: Material(
/// child: Ink( also tried with Ink and no Ink and no Material just InkWell but no ripple
child: InkWell(
onTap: () => widget.nav(widget.myItems[index]),
splashColor: Colors.red,
child: Card(
child: _itemTile(index),
),
),
),
),
),
),
),
),
);
Run Code Online (Sandbox Code Playgroud)
的ListTile:
return ListTile( …Run Code Online (Sandbox Code Playgroud) 如果我在 StencilJS 中有这样的东西。
<mycomponent>
<my-other-compoent></my-other-compoennt>
</mycomponent>
Run Code Online (Sandbox Code Playgroud)
<mycompoent>当任何子组件更新时我可以通知吗?