ivofernandes / anchor_tabs Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
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
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
],
)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.