v2.0.0cupertino_tabbar
iOS 13 스타일의 탭 바를 위한 고도로 사용자 정의 가능한 간단한 위젯입니다.
aliyigitbireroglu/flutter-cupertino-tabbar open-source repository details.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A highly customisable and simple widget for having iOS 13 style tab bars.
It is highly recommended to read the documentation and run the example project on a real device to fully understand and inspect the full range of capabilities.
Media | Description | Installation | How-to-Use
[useShadow] is added. If set to true, a shadow will be displayed under the indicator that is much more similar to the actual iOS version. See Media for examples.
[allowScrollable], [fittedWhenScrollable], [animateWhenScrollable], [animateUntilScrolled], [outerHorizontalPadding] and [outerVerticalPadding] are added. These all work towards making an easy-to-use scrollable tab bar. Please refer to the documentation and the examples for instructions and see Media for examples.
Watch on Youtube:
https://www.cosmossoftware.coffee/Common/Portfolio/GIFs/FlutterCupertinoTabBarNew.gif
This is a highly customisable and simple widget for having iOS 13 style tab bars.
Simply create a CupertinoTabBar as shown in the example:
CupertinoTabBar(
Colors.black //_backgroundColor
Colors.white //_foregroundColor
[...], //_widgets
cupertinoTabBarValueGetter, //_valueGetter
(int index) { //_onTap
setState(() {
cupertinoTabBarValue = index;
});
},
{Key key,
useSeparators : false,
innerHorizontalPadding : 10.0,
innerVerticalPadding : 10.0,
borderRadius : const BorderRadius.all(const Radius.circular(10.0)),
curve : Curves.linearToEaseOut,
duration : const Duration(milliseconds: 350),
allowExpand : false,
allowScrollable : false,
fittedWhenScrollable : false,
animateWhenScrollable : false,
animateUntilScrolled : false,
outerHorizontalPadding : 10.0,,
outerVerticalPadding : 0})
)
int cupertinoTabBarValue = 0;
int cupertinoTabBarValueGetter() => cupertinoTabBarValue;
Further Explanations:
For a complete set of descriptions for all parameters and methods, see the documentation.
Any help, suggestion or criticism is appreciated!
Cheers.
https://www.cosmossoftware.coffee/Common/Images/CosmosSoftwareIconTransparent.png