Giter Site home page Giter Site logo

anchor_tabs's People

Contributors

ivofernandes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

zhixinpeng

anchor_tabs's Issues

Make anchor tabs lazy load

For now we are putting all the blocks inside a column. Making flutter need to build the entire widget tree below the AnchorTabPanel to render the first frame

But would be possible to use a build method and build/destroy the elements as the user scrolls, for understanding this (listview + jumpToElement) better, look to this package:
https://pub.dev/packages/scrollable_positioned_list

Make the TABS customizable

Problem:
The current implementation of tabs in the anchor_tabs package provides a simple material button with text. However, there is a demand for more customization options, specifically the ability to create a horizontally scrollable TabBar-like appearance.

Feature Request:
I propose the enhancement of the anchor_tabs package to allow for customizable tabs, enabling developers to achieve a horizontally scrollable TabBar-style look. This would provide greater flexibility and meet the diverse design requirements of Flutter applications.

Proposed Changes:

1. Customization API:

Introduce a new API or parameters that allow developers to customize the appearance of individual tabs. This could include options for background color, text style, icon placement, and other visual properties.

2. Additional Callbacks:

Consider adding callbacks or events that notify developers when a tab is selected or when the user scrolls through the tabs. This would facilitate additional interactivity and allow for the implementation of dynamic behaviors.

Example Usage:

Tabs(
  tabs: [
    Tab(
      text: 'Tab 1',
      // Add additional customization properties here
    ),
    Tab(
      text: 'Tab 2',
      // Add additional customization properties here
    ),
    // Add more tabs as needed
  ],
)

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.