Как я могу сделать пальцем вправо и влево только нижний лист в флаттер? - PullRequest
0 голосов
/ 12 февраля 2020

Я разрабатываю экран для своего клиента, он хочет, чтобы карта Google, на которой также должен отображаться нижний лист, и этот нижний лист, также проводите пальцем влево и вправо, но не следует проводить пальцем по экрану карты, я использовал нижний лист на экране карты Google. Теперь я хочу провести только не весь нижний лист, в котором две вещи используют карту и нижний лист, поэтому я хочу провести только по расширяемому нижнему листу,

body: ExpandableBottomSheet(
      key: key,
      background: GoogleMap(
        onMapCreated: _onMapCreated,
        initialCameraPosition: CameraPosition(
          target: LatLng(30.767956, 72.437813),
          zoom: 14.4746,
        ),
      ),
      persistentHeader: Container(
        height: height / 8,
        width: width / 1.03,
        color: Colors.transparent,
        child: Card(
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: <Widget>[
              SizedBox(
                height: height / 60,
              ),
              //Divider(),
              Padding(
                padding: const EdgeInsets.only(top: 0, left: 12),
                child: Text(
                  "STATUS",
                  style: TextStyle(
                      fontSize: height / 70, color: Color(0xff66635b)),
                ),
              ),
              SizedBox(
                height: height / 60,
              ),
              Row(
                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                children: <Widget>[
                  Padding(
                    padding: const EdgeInsets.only(top: 0, left: 12),
                    child: Text(
                      "Waiting for provider to accept...",
                      style: TextStyle(fontSize: height / 50),
                    ),
                  ),
                  Column(
                    children: <Widget>[
                      Icon(Icons.fast_forward, color: Colors.grey,),
                      Text(
                        "Step ",
                        style: TextStyle(fontSize: height / 60, fontWeight: FontWeight.w500),
                      ),
                    ],
                  ),
                ],
              ),
            ],
          ),
        ),
      ),
      expandableContent: Container(
        width: width / 1.03,
        color: Colors.transparent,
        child: Card(
          child: Column(
            //crossAxisAlignment: CrossAxisAlignment.start,
            //mainAxisSize: MainAxisSize.min,
            children: <Widget>[
              SizedBox(height: height/80,),
              Row(
                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                crossAxisAlignment: CrossAxisAlignment.start,
                children: <Widget>[
                  Text(
                    'Hair Cut & Shave',
                    style: TextStyle(
                      color: Colors.black,
                      fontSize: height / 60,
                    ),
                  ),
                  SizedBox(
                    width: width / 7,
                  ),
                  Container(

                height: height/30,


                child:  new Container(
                    decoration: new BoxDecoration(
                        color: Color(0xff0d4f1e),
                        borderRadius: new BorderRadius.only(
                            topLeft:  const  Radius.circular(100.0),
                            topRight: const  Radius.circular(100.0),
                            bottomLeft:  const  Radius.circular(100.0),
                            bottomRight: const  Radius.circular(100.0)
                        )
                    ),
                    child: new Center(
                      child: Padding(
                        padding: const EdgeInsets.all(8.0),
                        child: new Text("1x", style: TextStyle(fontSize: height/80, color: Colors.white), ),
                      ),
                    )

                ),
              )
                ],
              ),
...