Comments (1)
Hello!
After careful consideration, we have decided not to add RTL support. The same behavior can be achieved using the TabController.initialIndex property:
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
home: DefaultTabController(
length: 3,
initialIndex: 2,
child: Scaffold(
body: SafeArea(
child: Stack(
children: [
SegmentedTabControl(
height: 46,
tabs: [
SegmentTab(
label: 'LIBRARY[',
),
SegmentTab(
label: 'ACCOUNT',
),
SegmentTab(
label: 'HOME',
),
],
),
Padding(
padding: EdgeInsets.only(top: 46),
child: TabBarView(
physics: BouncingScrollPhysics(),
children: [
Center(
child: Text('LIBRARY PAGE'),
),
Center(
child: Text('ACCOUNT PAGE'),
),
Center(
child: Text('HOME PAGE'),
),
],
),
),
],
),
),
),
),
);
}
}
from animated-segmented-tab-control.
Related Issues (10)
- SegmentedTabControl doesn't have isScrollable property? HOT 1
- SegmentedTabControl doesn't have isScrollable property?
- BUG: AnimationController.stop() called after AnimationController.dispose() HOT 5
- not support web platform
- InitialIndex not work on SegmentTab position index but work in TabBarView HOT 1
- How to prevent reloading screens when Tab - Switch
- How to give separated border/container to each tab?
- Can you distinguish between unselected and selected FontWeight? Currently, only one TextStyle is exposed. Can you adapt and add SelectTextStyle。 HOT 1
- How to make tabs scrollable like TabBar, "isScrollable"?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from animated-segmented-tab-control.