toggle_bar_button 1.0.1 copy "toggle_bar_button: ^1.0.1" to clipboard
toggle_bar_button: ^1.0.1 copied to clipboard

A dart package to display a horizontal bar of customisable toggle tabs. Supports iOS and Android.

example/lib/main.dart

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

import 'package:flutter/services.dart';
import 'package:toggle_bar_button/toggle_bar_button.dart';

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Container(
          child: ToggleBarButton(
            tabItems: ["Apples", 'Bananas', 'Oranges', 'Papayas'],
            tabContentItems: <Widget>[
              Center(child: Text('Apples')),
              Center(child: Text('Bananas')),
              Center(child: Text('Oranges')),
              Center(child: Text('Papayas')),
            ],
          ),
        ),
      ),
    );
  }
}
15
likes
40
pub points
54%
popularity

Publisher

unverified uploader

A dart package to display a horizontal bar of customisable toggle tabs. Supports iOS and Android.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on toggle_bar_button