flutter_advanced_segment 0.0.1 copy "flutter_advanced_segment: ^0.0.1" to clipboard
flutter_advanced_segment: ^0.0.1 copied to clipboard

outdated

An advanced segment widget, that can be fully customized.

example/lib/main.dart

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

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

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

class _MyAppState extends State<MyApp> {
  String _selectedSegment = 'all';

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: AdvancedSegment(
            segments: {
              'all': 'All',
              'starred': 'Starred',
            },
            value: _selectedSegment,
            onValueChanged: (segment) {
              setState(() {
                _selectedSegment = segment;
              });
            },
          ),
        ),
      ),
    );
  }
}
105
likes
0
points
6.12k
downloads

Publisher

verified publisheralexmelnyk.io

Weekly Downloads

An advanced segment widget, that can be fully customized.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_advanced_segment