[Flutter] floatingActionButton

Comely·2025년 1월 22일

Flutter

목록 보기
23/26

Small (40 x 40)

FloatingActionButton.small(
  onPressed: onPressed,
  child: Icon(Icons.edit),
)

Regular (56 x 56)

FloatingActionButton(
  onPressed: onPressed,
  child: Icon(Icons.edit),
)

Large (96 x 96)

FloatingActionButton.large(
  onPressed: onPressed,
  child: Icon(Icons.edit),
)

Extended

FloatingActionButton.extended(
  onPressed: onPressed,
  label: Text('Extended'),
  icon: Icon(Icons.edit),
)


Custom size (A x B):

SizedBox(
  width: 20,
  height: 20,
  child: FittedBox(
    child: FloatingActionButton(
      onPressed: onPressed,
      child: Icon(Icons.edit),
    ),
  ),
)
profile
App, Web Developer

0개의 댓글