Widget, that can make any static located widget hidable

Overview

Package Logo
pub version License: MIT

Installing

See the official installing guidline from hidable/install

Usage & Overview

Package Example Overview

To start using Hidable widget, we have to create a ScrollController. inctance before.

final ScrollController scrollController = ScrollController();

As case of usage, we should have one scrollable widget (SingleChildScrollView, ListView etc) and one static located widget (AppBar, BottomNavBar etc) which'd be wrapped with Hidable widget.

So, scrollController which we created before must be given to each one (scrollable widget and static located hidable widget).

Scrollable widget

ListView.separated(
  // General scroll controller which makes bridge between
  // This ListView and Hidable widget.
  controller: scrollController,
  itemCount: colors.length,
  itemBuilder: (_, i) => Container(
     height: 50,
     color: colors[i].withOpacity(.6),
  ),
  separatorBuilder: (_, __) => const SizedBox(height: 10),
),

Static located hidable widget

Hidable(
  controller: scrollController,
  wOpacity: true, // As default it's true.
  size: 56, // As default it's 56.
  child: BottomNavigationBar(...),
),

That is the common usage of hidable, and also you can find full code implmenetation of hidable at official example page.

You might also like...

A widget lib that the widget in this lib can react to flutter ScrollController's offset

A widget lib that the widget in this lib can react to flutter ScrollController's  offset

Language: English | 中文简体 linked_scroll_widgets A lib full of widgets that can react to the scrollController's offset change,to custom your UI effect.

Oct 16, 2022

A sliding up panel widget which can be used to show or hide content, beautiful and simple.

A sliding up panel widget which can be used to show or hide content, beautiful and simple.

flutter_sliding_up_panel A sliding up panel widget which can be used to show or hide content, beautiful and simple. demo Getting Started dependencies:

Dec 12, 2022

Custom bottom sheet widget, that can resize by drag and then scroll.

Custom bottom sheet widget, that can resize by drag and then scroll.

Bottom Sheet This package is part of the SurfGear toolkit made by Surf. About Custom bottom sheet widget that can be resized in response to drag gestu

Dec 16, 2022

Global loading widget, which can be used through simple configuration.

Global loading widget, which can be used through simple configuration.

load Global loading widget, which can be used through simple configuration. Pure flutter library, not use native code. It is similar to OKToast in use

Nov 4, 2022

An advanced switch widget, that can be fully customized with size, text, color, radius of corners.

An advanced switch widget, that can be fully customized with size, text, color, radius of corners.

flutter_advanced_switch An advanced switch widget, that can be fully customized with size, text, color, radius of corners. Switch Light Switch Dark Ge

Dec 15, 2022

A widget that can be dragged and scrolled in a single gesture and snapped to a list of extents.

A widget that can be dragged and scrolled in a single gesture and snapped to a list of extents.

Sliding Sheet A widget that can be dragged and scrolled in a single gesture and snapped to a list of extents. Click here to view the full example. Ins

Mar 10, 2022

Flutter Color Picker Wheel - an easy to use widget which can be heavily customized

Flutter Color Picker Wheel  - an easy to use widget which can be heavily customized

Flutter Color Picker Wheel Flutter Color Picker Wheel is an easy to use widget which can be heavily customized. You can use the WheelColorPicker direc

Oct 4, 2022

Flutter ScrollView Observer - a library of widget that can be used to listen for child widgets those are being displayed in the scroll view

Flutter ScrollView Observer - a library of widget that can be used to listen for child widgets those are being displayed in the scroll view

Flutter ScrollView Observer - a library of widget that can be used to listen for child widgets those are being displayed in the scroll view

Jan 6, 2023

Flutter Triple Status Button can use toggle button but in three statuses.

Flutter Triple Status Button can use toggle button but in three statuses.

triple_status_button Triple Status Button. Flutter Triple Status Button can use toggle button but in three statuses. Property Description height heigh

Nov 13, 2021
Comments
  • More than one Hidable widget on the same screen

    More than one Hidable widget on the same screen

    My page design calls for two widgets which need hiding when the list is scrolled, one at the top and one at the bottom. If I create two Hidable widgets in one class, it doesn't seem possible to set the size correctly. Whatever size value I give the top Hidable, it seems to apply this also to the bottom one, regardless of the value I set there.

    Is there a workaround for this, or any suggestion as to how I might implement this?

    bug invalid 
    opened by MobiNeil 8
  • Cannot use Hidable as an AppBar

    Cannot use Hidable as an AppBar

    Scaffold's appbar: field requires a PreferredSizeWidget and not normal Widget. That's why we cannot use Hidable as a wrapper of AppBar. We should a factory builder -> (Hidable.preferredSizeWidget() or Hidable.appbar()) or another widget that returns PreferredSizeWidget instead of normal Widget.

    Screen Shot 2022-09-03 at 13 16 08 bug feature 
    opened by theiskaa 1
  • bump/v1.0.3

    bump/v1.0.3

    Bumps to version 1.0.3


    Resolves:

    • #10

    Commits:

    • feat: add [PrefferedSizeWidget] support to Hidable.
    • test: add tests for [PrefferedSizeWidget] implementation
    • chore: improve examples in example/main.dart
    • chore: update overview in README
    • feat: use [prefferedWidgetSize] instead of [size] field.
    • chore: bump v1.0.3
    feature 
    opened by theiskaa 0
  • Widget has its own background

    Widget has its own background

    The Hidable has its own background, with elevation and background color, probably it takes the material common color of theme, so, in my case white.

    In any case we should remove the Material widget from under the Hidable. Otherwise there is no way to avoid this issue:

    The white parts (on top-left and top-right) is Hidable's background, which actually should be transparent. Screen Shot 2022-01-18 at 11 50 25

    bug 
    opened by theiskaa 0
Releases(v1.0.2)
  • v1.0.2(Jan 18, 2022)

  • v1.0.1(Nov 10, 2021)

  • v1.0.0(Nov 9, 2021)

    Package Logo

    The very first version of the Hidable package! So that can add scroll-to-hide effect to any static located widget - AppBar, BottomNavigationBar, etc.

    Overview

    Package Example Overview

    Scrollable widget

    ListView.separated(
      // General scroll controller which makes bridge between
      // This ListView and Hidable widget.
      controller: scrollController,
      itemCount: colors.length,
      itemBuilder: (_, i) => Container(
         height: 50,
         color: colors[i].withOpacity(.6),
      ),
      separatorBuilder: (_, __) => const SizedBox(height: 10),
    ),
    

    Static located hidable widget

    Hidable(
      controller: scrollController,
      wOpacity: true, // As default it's true.
      size: 56, // As default it's 56.
      child: BottomNavigationBar(...),
    ),
    
    Source code(tar.gz)
    Source code(zip)
Owner
Anon
An open source gangs community
Anon
A Flutter Widget to make interactive timeline widget.

Bubble Timeline Package A Flutter Widget to make interactive timeline widget. This widget can be used to make Event Timelines, or Timelines for certai

Vansh Goel 12 Sep 22, 2022
Responsive Widgets Prefix allows you to add the "Responsive" prefix to any widget that needs scaling or font size increases

Responsive Widgets Prefix allows you to add the Responsive prefix to any widget that needs scaling or font size increases (for varying device screen sizes).

The Mobile Applications Community 2 Apr 18, 2022
Flutter custom widget to make a group buttons. Included Radio and CheckBox buttons.

Flutter widget to create a group of buttons fast ?? Included Radio and CheckBox buttons models with custom groping types ?? Show some ❤️ and star the

Stanislav Ilin 162 Dec 26, 2022
Flutter package: Similar to a ListView, but lets you programmatically jump to any item, by index.

indexed_list_view Similar to a ListView, but lets you programmatically jump to any item, by index. The index jump happens instantly, no matter if you

Marcelo Glasberg 244 Dec 27, 2022
📓 Storyboard your components with Flutterbook. Develop, document, & test any kind of Flutter component.

Flutterbook A storyboarding tool to accelerate the development of Flutter widgets. Inspired by Storybook.js. The package is built to support Windows a

Philip Vu 25 Oct 7, 2022
Show custom in-app notification with any Widgets in flutter

notify_inapp show custom in-app notification with any Widgets. Getting Started Add this to your package's pubspec.yaml file: dependencies: notify_in

NewTab 3 Aug 19, 2022
AsyncButtonBuilder offers a simple way to extend any type of button with an asynchronous aspect

async_button_builder AsyncButtonBuilder offers a simple way to extend any type of button with an asynchronous aspect. It allows adding loading, disabl

Nollie 22 Jul 10, 2022
Provider support for overlay, make it easy to build toast and In-App notification.

overlay_support Provider support for overlay, make it easy to build toast and In-App notification. this library support ALL platform Interaction If yo

Bin 340 Jan 1, 2023
Make your native android Dialog Fancy and Gify.

Make your native android Dialog Fancy and Gify. A library that takes the standard Android Dialog to the next level with a variety of styling options and Gif's. Style your dialog from code.

Shashank Singhal 522 Jan 2, 2023
A Flutter plugin that makes it easier to make floating/overlay windows for Android with pure Flutter

flutter_floatwing A Flutter plugin that makes it easier to make floating/overlay windows for Android with pure Flutter. Android only Features Pure Flu

Zoe 116 Dec 21, 2022