flutter_search_panel 0.0.2 copy "flutter_search_panel: ^0.0.2" to clipboard
flutter_search_panel: ^0.0.2 copied to clipboard

outdated

Flutter search panel is a widget that can be used to provide search functionality to users for selectiong values from an array of strings. Can be used instead of Dropdownbutton for stability and better looks.

example/lib/main.dart

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

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

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

class _MyAppState extends State<MyApp> {

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      home: new Scaffold(
        appBar: new AppBar(
          title: const Text('Flutter Search Panel'),
        ),
        body: new Center(
          child: FlutterSearchPanel(
            padding: EdgeInsets.all(10.0),
            selected: 'a',
            title: 'Demo Search Page',
            data: ['This', 'is', 'a', 'test', 'array'],
            icon: new Icon(Icons.check_circle, color: Colors.white),
            color: Colors.blue,
            textStyle: new TextStyle(color: Colors.white, fontWeight: FontWeight.bold, fontSize: 20.0, decorationStyle: TextDecorationStyle.dotted),
            onChanged: (value) {
              print(value);
            },
          ),
        ),
      ),
    );
  }
}
4
likes
30
pub points
62%
popularity

Publisher

unverified uploader

Flutter search panel is a widget that can be used to provide search functionality to users for selectiong values from an array of strings. Can be used instead of Dropdownbutton for stability and better looks.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_search_panel