how do i put platform views under the bottomsheet of the scaffold

Viewed 25

I ran into a problem that the platforms view are displayed on top of the bottomsheet. If you uncomment the line everything works correctly. How do I achieve behavior like with a commented line.

  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: const Color(0xffFFFFFF),
      //body: Container(color: Colors.grey, width: 800, height: 800,);
      body: SizedBox(
        height: 800,
        child: AndroidView(
             viewType: viewType,
             layoutDirection: TextDirection.ltr,
             creationParams: creationParams,
             creationParamsCodec: const StandardMessageCodec(),
           ),
        ),
      bottomSheet: Container(color: Colors.amber, height: 600.0,),);
  }
0 Answers
Related