animated_dropdown_search_codespark 0.0.4 copy "animated_dropdown_search_codespark: ^0.0.4" to clipboard
animated_dropdown_search_codespark: ^0.0.4 copied to clipboard

Empower your app with a sophisticated dropdown widget, featuring search and highlighting.

example/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Animated Dropdown Search Example')),
        body: Center(
          child: Padding(
            padding: const EdgeInsets.all(16.0),
            child: AnimatedDropdownSearch(
              data: const [
                'Apple',
                'Banana',
                'Cherry',
                'Date',
                'Elderberry',
                'Fig',
                'Grapes'
              ],
              hint: 'Select a fruit',
              onSelected: (val) {
                print('Selected: $val');
              },
              enableSearch: true,
              selectedHighlightColor: Colors.yellow,
              scrollPercentageColorIndicator: Colors.red,
            ),
          ),
        ),
      ),
    );
  }
}
17
likes
0
pub points
73%
popularity

Publisher

verified publisherksaikiran.site

Empower your app with a sophisticated dropdown widget, featuring search and highlighting.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on animated_dropdown_search_codespark