패키지, 저장소 및 앱 카테고리 검색

background_app_bar 표지
패키지 상세v2.1.0+1

background_app_bar

백그라운드 앱 바 플러그인입니다. 스크롤할 때 슬리버 앱 바의 배경을 유지하려면 이 플러그인을 사용하세요.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
54
좋아요
47
Pub 점수
140

패키지 설치

flutter pub add background_app_bar

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

background_app_bar 패키지는 스크롤 중에 SliverAppBar의 배경 시각적 외관을 유지하도록 설계된 Flutter 플러그인입니다. 사용자가 스크롤할 때 이미지나 그라데이션과 같은 시각적 배경이 보이고 일관되게 유지되도록 보장하여 앱 인터페이스의 시각적 연속성을 향상시킵니다. 풍부하고 몰입감 있는 디자인을 가진 앱에 적합하며, Android, iOS, 웹, macOS, Windows, Linux 등 다양한 플랫폼에서 작동합니다. 기존의 SliverAppBar 구현과 원활하게 통합되어 대규모 코드 변경 없이 사용할 수 있습니다.

사용 사례

  • 스크롤 가능한 인터페이스에서 시각적 연속성 유지
  • 지속적인 배경을 사용하여 몰입형 앱 경험 만들기
  • 스크롤 시 UI 디자인 일관성 향상
  • 시각적으로 풍부한 대시보드 또는 갤러리 구축
  • 안정적인 배경을 사용한 파라럭스 효과 구현

주요 기능

  • 스크롤 중 배경 유지
  • 이미지와 그라디언트를 지원합니다
  • 크로스 플랫폼 호환성
  • SliverAppBar와의 간편한 통합
  • 필수 최소 구성

적합한 대상

  • 디자인 중심의 플러터 애플리케이션
  • 복잡한 스크롤 기반 레이아웃을 가진 앱
  • 시각적 완성도를 우선시하는 개발자
  • SliverAppBar를 광범위하게 사용하는 프로젝트
  • 다중 플랫폼 앱을 개발하는 팀

고려 사항

  • 큰 백그라운드 자산과 함께 성능에 영향을 줄 수 있습니다
  • 이미지 해상도를 신중하게 다뤄야 합니다
  • 간단하고 미니멀한 UI에는 적합하지 않습니다
  • 배경 유지 외에 맞춤 설정이 제한적
  • 부드러운 스크롤을 위해 최적화된 자산과 함께 사용하는 것이 가장 좋습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Widget Background App Bar

A background app bar plugin, use this plugin if you want to preserve background of sliver app bar when scrolling,

inspired by GradientAppBar GitHub

Screenshots

Don't forget to tap + button 5 times

Screenshot-1565398534.png Screenshot-1569417041.png Screenshot-1569417048.png Screenshot-1569417051.png

Getting Started

  1. Depend on it by adding this to your pubspec.yaml file: background_app_bar: ^1.0.0

  2. Import it: import 'package:background_app_bar/background_app_bar.dart'

  3. 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,
                    ),
                ),
            ),
        ),
    ),
)

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.