chrome_tab_bar 1.0.3 copy "chrome_tab_bar: ^1.0.3" to clipboard
chrome_tab_bar: ^1.0.3 copied to clipboard

Chrome Tab Bar with custom corner radius, background color, tab selected color, tab text, and many more.

example/lib/main.dart

import 'package:chrome_tab_bar/chrome_tab_bar.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const HomePage(),
    );
  }
}

class HomePage extends StatefulWidget {
  const HomePage({Key? key}) : super(key: key);

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return SizedBox(
      width: MediaQuery.of(context).size.width,
      height: MediaQuery.of(context).size.height,
      child: ChromeTabBar(
        tabSelectedColor: Colors.white,
        backgroundColor: Colors.blue,
        tabsList: const [
          SizedBox(),
          SizedBox(),
          SizedBox(),
          SizedBox(),
          SizedBox(),
        ],
        tabText:const [
          "Tab One",
          "Tab Two",
          "Tab Three",
          "Tab Four",
          "Tab Five",
        ],

      ),
    );
  }
}
5
likes
140
pub points
21%
popularity

Publisher

verified publisherthetechmarvel.blogspot.com

Chrome Tab Bar with custom corner radius, background color, tab selected color, tab text, and many more.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on chrome_tab_bar