GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jeebb/availability: A flutter plugin which is similar to https://api.flutter.dev/flutter/widgets/Visibility-class.html but with WidgetBuilder.

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
lib
lib
 
 
test
test
 
 
.gitignore
.gitignore
 
 
.metadata
.metadata
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pubspec.lock
pubspec.lock
 
 
pubspec.yaml
pubspec.yaml
 
 

Repository files navigation

Availability

A simple if-else widget renderer in an object-oriented way. You can find it similar to Visibility, but with WidgetBuilder usage. With this, the child widget is not put into context until the condition is satisfied.

#code-for-fun

Getting Started

Usage:

Availability(
    available: <condition>,
    childBuilder: (BuildContext context) => <widget>,
)

or

Availability(
    available: <condition>,
    childBuilder: (BuildContext context) => <widget>,
    elseBuilder: (BuildContext context) => <another_widget>,
)

*** Similar dart code without Availability:

if (<condition>) {
    return <widget>;
} else {
    return <another_widget>;
}

About

A flutter plugin which is similar to https://api.flutter.dev/flutter/widgets/Visibility-class.html but with WidgetBuilder.

Resources

Readme
MIT license
Activity

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.