Skip to main content

katana_ui 3.5.0 copy "katana_ui: ^3.5.0" to clipboard
katana_ui: ^3.5.0 copied to clipboard

A package that provides widgets for UI to facilitate design and implementation.

Masamune logo

Katana UI

Follow on GitHub Follow on X Follow on YouTube Maintained with Melos

GitHub Sponsor


[GitHub] | [YouTube] | [Packages] | [X] | [LinkedIn] | [mathru.net]


This package is a collection of additional features around the UI available in the Katana/Masamune framework.

Installation #

Import the following packages

flutter pub add katana_ui

How to use #

Alert and confirmation dialogs can be displayed.

// Alert dialog.
Modal.alert(
  title: "Title",
  text: "Contents text",
  submitText: "OK",
  onSubmit: () {
    // Processing when the OK button is pressed
  },
);

// Confirmation dialog.
Modal.confirm(
  title: "Title",
  text: "Contents text",
  submitText: "Yes",
  cancelText: "No",
  onSubmit: () {
    // Processing when the Yes button is pressed    
  },
  onCancel: () {
    // Processing when the No button is pressed
  }
);

Segmented tab bar #

A pill-shaped tab bar that works like Flutter's TabBar. Combine it with a TabBarView to switch the content by tapping a tab or by swiping horizontally.

DefaultTabController(
  length: 3,
  child: Column(
    children: [
      const SegmentedTabBar(
        tabs: [
          Tab(text: "Stock"),
          Tab(text: "Trading"),
          Tab(text: "Favorite"),
        ],
      ),
      Expanded(
        child: TabBarView(
          children: [
            StockView(),
            TradingView(),
            FavoriteView(),
          ],
        ),
      ),
    ],
  ),
);

GitHub Sponsors #

Sponsors are always welcome. Thank you for your support!

https://github.com/sponsors/mathrunet

0
likes
120
points
951
downloads

Documentation

API reference

Publisher

verified publishermathru.net

Weekly Downloads

A package that provides widgets for UI to facilitate design and implementation.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, katana, katana_platform_info, shimmer

More

Packages that depend on katana_ui