tabbed_view 0.3.0 copy "tabbed_view: ^0.3.0" to clipboard
tabbed_view: ^0.3.0 copied to clipboard

outdated

Widget inspired by the classic Desktop-style tab component. Supports customizable themes.

tabbed_view #

pub

Widget inspired by the classic Desktop-style tab component. Supports customizable themes.

intro

The TabbedView renders the presentation of the model.

The TabbedViewModel stores the tab data as name, content, buttons or any dynamic value.

Get started #

The default theme is TabbedViewTheme.light().

    List<TabData> tabs = [];
    for (var i = 1; i < 7; i++) {
      tabs.add(
          TabData(text: 'Tab $i', content: Center(child: Text('Content $i'))));
    }
    TabbedWiew tabbedView = TabbedWiew(model: TabbedWiewModel(tabs));

intro

Content builder #

It allows creating the contents of the tab dynamically during the selection event.

    List<TabData> tabs = [];
    for (var i = 1; i < 5; i++) {
      tabs.add(TabData(text: 'Tab $i'));
    }

    TabbedWiew tabbedView = TabbedWiew(
        model: TabbedWiewModel(tabs),
        contentBuilder: (BuildContext context, int tabIndex) {
          int i = tabIndex + 1;
          return Center(child: Text('Content $i'));
        });

Themes #

Dark theme #

    TabbedWiew tabbedView =
        TabbedWiew(model: model, theme: TabbedViewTheme.dark());

intro

Mobile theme #

    TabbedWiew tabbedView =
        TabbedWiew(model: model, theme: TabbedViewTheme.mobile());

intro

Agenda for the next few days #

  • Complete documentation and examples to cover all available features.
  • Release the final version. The API can be changed.
91
likes
0
pub points
87%
popularity

Publisher

verified publishercaduandrade.net

Widget inspired by the classic Desktop-style tab component. Supports customizable themes.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on tabbed_view