tabbed_view 0.6.0 copy "tabbed_view: ^0.6.0" to clipboard
tabbed_view: ^0.6.0 copied to clipboard

outdated

Flutter widget inspired by the classic Desktop-style tab component. Supports customizable themes.

example/lib/main.dart

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

void main() {
  runApp(TabbedViewExample());
}

class TabbedViewExample extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        debugShowCheckedModeBanner: false, home: TabbedViewExamplePage());
  }
}

class TabbedViewExamplePage extends StatefulWidget {
  @override
  _TabbedViewExamplePageState createState() => _TabbedViewExamplePageState();
}

class _TabbedViewExamplePageState extends State<TabbedViewExamplePage> {
  late TabbedWiewController _model;

  @override
  void initState() {
    super.initState();
    List<TabData> tabs = [];
    for (int i = 1; i < 5; i++) {
      tabs.add(TabData(text: 'Tab $i', content: Text('Content $i')));
    }
    _model = TabbedWiewController(tabs);
  }

  @override
  Widget build(BuildContext context) {
    TabbedWiew tabbedWiew = TabbedWiew(controller: _model);
    return Scaffold(
        body: Container(child: tabbedWiew, padding: EdgeInsets.all(32)));
  }
}
105
likes
0
pub points
87%
popularity

Publisher

verified publishercaduandrade.net

Flutter widget inspired by the classic Desktop-style tab component. Supports customizable themes.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on tabbed_view