FLUTTER ECOSYSTEM

shiburagi/Coordinator-Layout---Flutter

Uma biblioteca contém widget/layout para lidar com o comportamento de cabeçalho colapsável

Capa do projeto Layout de Coordenador --- Flutter
Stars
4
Forks
0
Último push (UTC)
8 de mar. de 2024
Status do projeto
Ativo
Muhammad Norzariman Razari GitHub avatar
GITHUB User

Muhammad Norzariman Razari ↗

I graduated from UiTM with a Bachelor's degree in Intelligent System. Really fall in love with Mobile Dev and current working as Mobile Application Developer.

@XenditPetaling Jaya, Selangor, Malaysia
LinguagensDartSwiftKotlinObjective-C

Tópicos técnicos

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 2 itens
  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher README

coordinator_layout

pub package

a Library contains widget/layout to handle collapsing header behavior

Alt Text

Example

CoordinatorLayout(
    headerMaxHeight: 200,
    headerMinHeight: kToolbarHeight + MediaQuery.of(context).padding.top,
    headers: [
        SliverCollapsingHeader(
            builder: (context, offset, diff) {
                return ...;
            },
        ),
    ],
    body: Container(height: null, child: buildBody(context)),
),
Fit content
CoordinatorLayout(
    headerMaxHeight: 200,
    headerMinHeight: kToolbarHeight + MediaQuery.of(context).padding.top,
    header:[ 
        Builder(builder: (context) {
            return SliverOverlapAbsorber(
            handle: NestedScrollView.sliverOverlapAbsorberHandleFor(context),
            sliver: SliverSafeArea(
                top: false,
                sliver: SliverCollapsingHeader(
                builder: (context, offset, diff) {
                    return ...;
                },
                ),
            ),
            );
        }),
    ],
    body: Container(height: null, child: buildBody(context)),
),