Giter Site home page Giter Site logo

drnorton / flutter_sliver_fill_remaining_box_adapter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rmtmckenzie/flutter_sliver_fill_remaining_box_adapter

0.0 1.0 0.0 227 KB

A flutter package providing SliverFillRemainingBoxAdapter, a sliver that fills the remaining space or shows its child, whichever is larger.

License: MIT License

Java 5.94% Objective-C 11.06% Dart 83.00%

flutter_sliver_fill_remaining_box_adapter's Introduction

Sliver Fill Remaining Box Adapter

pub package

A flutter package providng SliverFillRemainingBoxAdapter, a sliver that fills the remaining space or shows its child, whichever is larger.

This is essentially a combination of SliverFillRemaining, which sizes its child to the remaining space even if the child wants to be larger; and SliverToBoxAdapter, which is a sliver which sizes itself to its child.

This looks something like this:

Size by Child Filling remaining a bit Filling entire viewport
Screenshot showing sized by child height Screenshot showing expanded slightly Screenshot showing expanded over entire screen

Usage

The SliverFillRemainingBoxAdapter can be used in a similar way to other slivers, particularly SliverBoxAdapter. It hasn't been tested with ShrinkWrap set to true, and shouldn't be expected to be have well in that scenario. It also hasn't been tested when it isn't the last item in the list, or when there multiple SliverFillRemainingBoxAdapter instances.

If you have any problems please let me know by opening an issue! As this is just a side-project, I can't promise to be very quick to respond but I'll do my best.

Anyone willing to make contributions are very welcome to submit PRs.

flutter_sliver_fill_remaining_box_adapter's People

Contributors

rmtmckenzie avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.