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

GitHub 저장소thejitenpatel/floating_frosted_bottom_bar

floating_frosted_bottom_bar

thejitenpatel/floating_frosted_bottom_bar open-source repository details.

floating_frosted_bottom_bar 프로젝트 이미지
스타
5
포크
2
최근 푸시(UTC)
2022. 2. 13.
프로젝트 상태
활성

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

Floating Frosted Bottom Bar

Dart Flutter

A Flutter package that helps you to create a frosted floating bottom navigation bar that also reacts to scrolling events.

Demo 👀

Output sample

Usage 🎨

Wrap any child widget with FrostedBottomBar to convert it into frosted bottom bar. Basic example,

FrostedBottomBar(
        opacity: 0.6,
        sigmaX: 5,
        sigmaY: 5,
        child: Text(
              "Frosted Bottom Bar Example",
              textAlign: TextAlign.center,
              style: TextStyle(color: Colors.white),
            ),
        body: (context, controller) =>
              ListView.builder(
                  controller: controller,
                  itemBuilder: (context, index) {
                    return const Card(child: FittedBox(child: FlutterLogo()));
                  },
                ),
    )

Detail Usage

Following are the optional properties that can be used inside FrostedBottomBar

Parameter Example Action
sgimaX sgimaX: 5 Creates an image filter that applies a Gaussian blur
sgimaY sgimaY: 5 Creates an image filter that applies a Gaussian blur
opacity opacity: 0.6 An opacity of 1.0 is fully opaque. An opacity of 0.0 is fully transparent (i.e., invisible).
hideOnScroll hideOnScroll: false On true it will hide bottom bar on scroll
bottomBarColor bottomBarColor: Colors.grey Change the bottom bar color
start start: 2 The start position in y-axis of the SlideTransition of the FrostedBottomBar
end end: 0 The end position in y-axis of the SlideTransition of the FrostedBottomBar
duration duration: const Duration(seconds: 1) Set the duration of the FrostedBottomBar
width width: MediaQuery.of(context).size.width * 0.6 Set the width for FrostedBottomBar
borderRadius borderRadius: BorderRadius.circular(500) Set the radius of FrostedBottomBar
reverse reverse: true Reverse the direction of scrolling of FrostedBottomBar i.e. if you want to make the bar visible when you scroll down and hide it when you scroll up, set this to true
alignment alignment: Alignment.bottomCenter Set the alignment of FrostedBottomBar
fit fit: StackFit.loose The fit property of the Stack in which the FrostedBottomBar is placed
alignment alignment: Alignment.bottomCenter Set the alignment of FrostedBottomBar
Jiten Patel GitHub avatar
GitHub 작성자

Jiten Patel ↗

Learning from mistakes and delivering from the experience. I am a recent grad student with hands-on experience in software development.

mumbai, ghatkopar
언어C++DartCMakeHTMLSwiftCKotlinObjective-C

사용 중인 의존성

의존성 목록 3 개

  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}
  • flutter_lints개발 의존성^1.0.0

프로젝트에 맞는 저장소를 선택하려면?

사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.

  1. 이름, 작성자 또는 설명으로 검색하고 기술 주제로 범위를 좁힙니다.
  2. 스타, 포크, 최근 푸시를 함께 비교하세요. 스타는 관심의 지표이며 품질을 보장하지 않습니다.
  3. 사용하기 전에 GitHub에서 README, 라이선스, Issues를 확인하세요.

출처 및 관리

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗