appinio_animated_toggle_tab 1.0.1
appinio_animated_toggle_tab: ^1.0.1 copied to clipboard
A custom tab viewer with built-in animation and different design from default `TabViewer`.
Appinio Animated Toggle Tab #
A custom tab viewer with built-in animation.
Preview #

Features #
- a tabviewer ready to be customized
- built-in animation
- different design from default
TabViewer
Getting started #
In the pubspec.yaml
of your flutter project, add the following dependency:
dependencies:
...
appinio_tanimated_toggle_tab:
In your library add the following import:
import 'package:appinio_animated_toggle_tab/appinio_animated_toggle_tab.dart';
For help getting started with Flutter, view the online documentation.
Usage #
You can place your AppinioAnimatedToggleTab
inside of a MaterialApp
, optional parameters can be defined to enable different featiures. See the following example
class TabsViewer extends StatelessWidget {
@override
Widget build(BuildContext context) {
return CupertinoApp(
home: AppinioAnimatedToggleTab(
callback: (int i) {},
tabTexts: const [
'make',
'your',
'tabs :)',
],
height: 40,
width: 300,
boxDecoration: BoxDecoration(color: Color(0xFFc3d2db),),
animatedBox: Container(
decoration: BoxDecoration(
color: Colors.white,
),
),
activeStyle: const TextStyle( color: Colors.blue,),
inactiveStyle: const TextStyle( color: Colors.black,),
);
}
}
Made with ❤ by Flutter team at Appinio GmbH