Flutter

[Flutter] FloatingActionButton 양쪽으로 띄우기

Rust Choi 2020. 3. 26. 16:25

Stack위젯으로 웹뷰 위에 container를 사용해서 배경을 transparent처리하면 웹뷰가 보이지만 웹이 컨트롤 되지 않는다.

floatingActionButton 처럼 웹뷰가 컨트롤 가능하고 커스텀 위젯 이벤트도 동작 가능하게 하려면??

 

Stack(
  children: <Widget>[
    Align(
      alignment: Alignment.bottomLeft,
      child: FloatingActionButton(...),
    ),
    Align(
      alignment: Alignment.bottomRight,
      child: FloatingActionButton(...),
    ),
  ],
)

scaffold의 옵션이 아니라 body 안에 floatingActionButton 을 커스텀 하면 된다.

 

 

https://stackoverflow.com/questions/50839282/how-to-add-multiple-floating-button-in-stack-widget-in-flutter?rq=1

 

How to add Multiple Floating button in Stack Widget in Flutter

In flutter one view over another view using Stack Widget. It's work fine. Now I need to added two floating button left and right side of bottom of screen. I added one button right side but I dnt kn...

stackoverflow.com