v2.1.0+1background_app_bar
백그라운드 앱 바 플러그인입니다. 스크롤할 때 슬리버 앱 바의 배경을 유지하려면 이 플러그인을 사용하세요.
47좋아요 4830일 다운로드140Pub 점수
AndroidiOSWebmacOSWindowsLinux
LeonColt/background_app_bar open-source repository details.
{"sdk":"flutter"}^5.0.0{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A background app bar plugin, use this plugin if you want to preserve background of sliver app bar when scrolling,
inspired by GradientAppBar GitHub
Don't forget to tap + button 5 times
Screenshot-1565398534.png Screenshot-1569417041.png Screenshot-1569417048.png Screenshot-1569417051.png
Depend on it by adding this to your pubspec.yaml file: background_app_bar: ^1.0.0
Import it: import 'package:background_app_bar/background_app_bar.dart'
Replace your current FlexibleSpaceBar (In the AppBar or SliverAppBar) to BackgroundFlexibleSpaceBar.
SliverAppBar(
expandedHeight: _kAppBarSize,
floating: false,
pinned: true,
snap: false,
elevation: 0.0,
backgroundColor: Colors.transparent,
flexibleSpace: BackgroundFlexibleSpaceBar(
title: widget.title != null ? Text(widget.title!) : null,
centerTitle: false,
titlePadding: const EdgeInsets.only(left: 20.0, bottom: 20.0),
background: ClipRect(
child: Container(
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 5.0, sigmaY: 5.0),
child: Container(
decoration: BoxDecoration(
color: Colors.black.withOpacity(0.5),
),
),
),
decoration: const BoxDecoration(
image: DecorationImage(
image: AssetImage("images/bg.jpg"),
fit: BoxFit.fill,
),
),
),
),
),
)