FLUTTER ECOSYSTEM

amitkot/appbar_elevation

초기에는 본문과 맞닿아 있고 스크롤 시 상승하는 AppBar용 플러터 위젯

appbar_elevation 프로젝트 이미지
Stars
9
Forks
3
최근 푸시(UTC)
2021. 10. 15.
프로젝트 상태
활성
Amit Kotlovski GitHub avatar
GITHUB User

Amit Kotlovski ↗

언어DartSwiftKotlinObjective-C

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 2 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}

원본 README

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

README 펼치기 / 접기

appbar_elevation

pub package

A Flutter Widget for an AppBar that is initially flush with the body and elevated when scrolled.

https://raw.githubusercontent.com/amitkot/appbar_elevation/HEAD/appbar_elevation.gif

Usage

Use the ScrollActivatedAppBarElevation widget to wrap a Scaffold that contains a Scrollable view (e.g. ListView, CustomScrollView). The widget uses a NotificationListener to detect the scroll position and provides an appBarElevation value to be used.

Example

@override
Widget build(BuildContext context) {
  return ScrollActivatedAppBarElevation(
    builder: (BuildContext context, double appBarElevation) {
      return Scaffold(
        appBar: AppBar(
          elevation: appBarElevation,
        ),
        body: ListView(
          children: [
            // ...
          ],
        ),
      );
    },
  );
}

See example for full code.

License

BSD