customtabview 0.2.0 copy "customtabview: ^0.2.0" to clipboard
customtabview: ^0.2.0 copied to clipboard

A custom tab view that safely handles dynamic tab rendering and avoids crashes from tab count mismatches.

example/main.dart

import 'package:flutter/material.dart';
import 'package:customtabview/custom_tab_view.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: CustomTabView(
          itemCount: 3,
          tabBuilder: (context, index) => Tab(text: 'Tab $index'),
          pageBuilder: (context, index) => Center(child: Text('Page $index')),
          initPosition: 0,
          indicatorColor: Colors.blue,
          labelColor: Colors.black,
        ),
      ),
    );
  }
}
0
likes
50
points
38
downloads

Publisher

verified publisherdivinefavour.ca

Weekly Downloads

A custom tab view that safely handles dynamic tab rendering and avoids crashes from tab count mismatches.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_bloc, freezed_annotation

More

Packages that depend on customtabview