standard_searchbar 1.0.4 copy "standard_searchbar: ^1.0.4" to clipboard
standard_searchbar: ^1.0.4 copied to clipboard

A simple and very customizable search bar widget for Flutter.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:standard_searchbar/standard_searchbar.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('Standard SearchBar Example'),
        ),
        body: const Center(
          child: StandardSearchBar(
            width: 350,
            backgroundColor: Color(0xFF35404D),
            hintText: 'Search',
            cursorColor: Colors.white,
            hintStyle: TextStyle(color: Color(0xFF8d9399)),
            startIconColor: Color(0xFF848B92),
            textStyle: TextStyle(color: Colors.white),
            shadow: [
              BoxShadow(
                color: Color.fromARGB(12, 255, 255, 255),
                spreadRadius: 7,
                blurRadius: 10,
                offset: Offset(0, 3),
              ),
            ],
          ),
        ),
        // backgroundColor: Colors.black12,
        backgroundColor: const Color(0xFF12202F),
      ),
    );
  }
}
12
likes
0
pub points
80%
popularity

Publisher

unverified uploader

A simple and very customizable search bar widget for Flutter.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on standard_searchbar