selectable_container 1.0.7 copy "selectable_container: ^1.0.7" to clipboard
selectable_container: ^1.0.7 copied to clipboard

Selectable container for Flutter. The container shows an icon on one of the corner when tapped.

selectable_container #

A Selectable Container for Flutter. Easy to implement and customize.

Demo #

Demo:

Usage #

To use plugin, just import package import 'package:selectable_container/selectable_container.dart';

Example #

Check de example directory to access the project that implements the image shown above.

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

    class SimpleExamplePage extends StatefulWidget {
      @override
      _SimpleExamplePageState createState() => _SimpleExamplePageState();
    }

    class _SimpleExamplePageState extends State<SimpleExamplePage> {
      @override
      Widget build(BuildContext context) {
        return Scaffold(
          appBar: AppBar(
            title: Text('Selectable Container'),
          ),
          body: Column(
            children: <Widget>[
              Text(
                'Default container',
                style: TextStyle(fontSize: 22, fontWeight: FontWeight.bold),
              ),
              SelectableContainer(
                selected: _selected
                onValueChanged: (newValue) {
                   setState(() {
                    _selected = newValue;
                  });
                },
                child: Text('Tap me'),
                padding: 16.0,
              ),
            ],
          ),
        );
      }
    }
53
likes
150
points
234
downloads

Publisher

unverified uploader

Weekly Downloads

Selectable container for Flutter. The container shows an icon on one of the corner when tapped.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on selectable_container