customizable_tabs 0.0.1
customizable_tabs: ^0.0.1 copied to clipboard
A highly customizable Flutter package for creating beautiful and interactive tab navigation interfaces with customizable styles, animations, and layouts.
import 'package:flutter/material.dart';
import 'package:customizable_tabs/customizable_tabs.dart';
void main() {
runApp(const CustomTabsDemo());
}
class CustomTabsDemo extends StatelessWidget {
const CustomTabsDemo({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Customizable Tabs Demo',
theme: ThemeData(
primarySwatch: Colors.deepPurple,
scaffoldBackgroundColor: Colors.white,
),
home: const TabsScreen(),
);
}
}
class TabsScreen extends StatelessWidget {
const TabsScreen({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Fancy Tabs')),
body: FancyTabs(
tabs: const ['Home', 'Explore', 'Profile'],
pages: const [
Center(child: Text('🏠 Home Page', style: TextStyle(fontSize: 24))),
Center(child: Text('🔍 Explore Page', style: TextStyle(fontSize: 24))),
Center(child: Text('👤 Profile Page', style: TextStyle(fontSize: 24))),
],
selectedColor: Colors.white,
unselectedColor: Colors.black54,
indicatorColor: Colors.deepPurple,
),
);
}
}