lanarsinc / animated-segmented-tab-control Goto Github PK
View Code? Open in Web Editor NEWAnimated segmented tab control
License: Other
Animated segmented tab control
License: Other
Unlike the existing TabBar() widget that is made by the Flutter team, SegmentedTabControl() doesn't have isScrollable property.
as shown below,
TabBar(
isScrollable: true,
);
How to give separated border/container to each tab?
When we are swapping between two tabs or by tapped, Every time widgets getting refreshed. How to handle this??
SafeArea(
child: Stack(
children: [
Padding(
padding: const EdgeInsets.only(top: 0),
child: TabBarView(
physics: const BouncingScrollPhysics(),
children: [
ActiveWidget(
items: []
),
PastWidget(
items: []
),
],
),
),
Padding(
padding: const EdgeInsets.all(16.0),
child: SegmentedTabControl(
radius: const Radius.circular(10),
backgroundColor: greyColorBorder,
indicatorColor: lightPrimaryColor,
tabTextColor: Colors.black45,
selectedTabTextColor: Colors.white,
squeezeIntensity: 2,
height: 45,
tabPadding: const EdgeInsets.symmetric(horizontal: 8),
textStyle: Theme.of(context).textTheme.bodyLarge,
tabs: [
SegmentTab(label: "Active"),
SegmentTab(label: "Pasive"),
],
),
),
],
),
)
Unsupported operation: Platform._operatingSystem
The relevant error-causing widget was: HomePage
its run in mobile but thrown exception when running on web
Unlike the existing TabBar() widget that is made by the Flutter team, SegmentedTabControl() doesn't have isScrollable property.
as shown below,
TabBar(
isScrollable: true,
);
when I use the initialIndex, the TabBarView section positions the view as the initial index that I have specified, but for the position of the SegmentTab it is still at index 0, please advise.
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.