animation_custom_tabbar 0.0.1
animation_custom_tabbar: ^0.0.1 copied to clipboard
Animation Custom Tabbar is a Flutter package that provides a highly customizable and animated tab bar widget. It allows developers to create a seamless and interactive tab navigation experience in the [...]
example/lib/main.dart
import 'package:animation_custom_tabbar/animation_custom_tabbar.dart';
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: AnimationCustomTabbar(
tabTitles: const ['Tab 1', 'Tab 2', 'Tab 3'],
tabViews: const [
Center(child: Text('Content 1')),
Center(child: Text('Content 2')),
Center(child: Text('Content 3')),
],
tabHeight: 50,
tabWidth: MediaQuery.of(context).size.width,
tabViewHeight: 400,
tabViewWidth: MediaQuery.of(context).size.width,
controllerPage: PageController(initialPage: 0),
),
),
);
}
}