searchfield 0.6.4 copy "searchfield: ^0.6.4" to clipboard
searchfield: ^0.6.4 copied to clipboard

outdated

A highly customizable, simple and easy to use flutter Widget to add a searchfield to your Flutter Application. This Widget allows you to search and select from list of suggestions.

example/lib/main.dart

import 'package:example/example1.dart';
import 'package:example/country_search.dart';
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
          visualDensity: VisualDensity.adaptivePlatformDensity,
        ),
        home: ExampleList());
  }
}

class ExampleList extends StatelessWidget {
  const ExampleList({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: Text('SearchField Demo')),
        body: Column(
          children: [
            ListTile(
              title: Text('Example 1'),
              onTap: () {
                Navigator.of(context)
                    .push(MaterialPageRoute(builder: (_) => Example1()));
              },
            ),
            ListTile(
              title: Text('Example 2'),
              onTap: () {
                Navigator.of(context).push(MaterialPageRoute(
                    builder: (_) => CountrySearch(
                          title: 'Country List',
                        )));
              },
            ),
          ],
        ));
  }
}
336
likes
0
pub points
98%
popularity

Publisher

verified publishermaheshjamdade.com

A highly customizable, simple and easy to use flutter Widget to add a searchfield to your Flutter Application. This Widget allows you to search and select from list of suggestions.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on searchfield