FLUTTER ECOSYSTEM

SalehTZ/expandable_search_bar

아름다운 플러터 애니메이션 검색 바 패키지입니다.

확장 가능한 검색 표시줄 프로젝트 이미지
Stars
10
Forks
1
최근 푸시(UTC)
2022. 6. 10.
프로젝트 상태
활성
Alex Talebi GitHub avatar
GITHUB User

Alex Talebi ↗

Love android & Flutter 💙. Flutter Engineer @NewElectron let's connect.

@NewElectronEarth공식 웹사이트 ↗
언어Dart

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 3 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}
  • flutter_lints개발 의존성^2.0.0

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

Pub

Animated Search Bar

Animated Search Bar package lets you add a beautiful search bar to your Flutter app.

Installation

  1. Add the latest version of package to your pubspec.yaml (and rundart pub get):
dependencies:
  expandable_search_bar: ^latest_version
  1. Import the package and use it in your Flutter App.
import 'package:expandable_search_bar/expandable_search_bar.dart';

Screenshots

Preview1

Preview2

⚠Note: As you see in the screenshots this package is only available on Mouse devices (Web, Windows, macOS, Linux), but I'm working on a solution to add mobile devices too.

Example

There are a number of properties that you can modify. Customize them as you want:

  • width
  • text
  • gutter (space between TextField and Button)
  • background color
  • icon color
  • icon background color
  • shadow under the bar
  • shadow under the button
  • animation duration (also for TextField)
  • animation curve (also for TextField)
class AnimatedBar extends StatelessWidget {  
  const AnimatedBar({
    Key? key,
  }) : super(key: key);

  final TextEditingController? searchController 
  = TextEditingController();

  @override  
  Widget build(BuildContext context) {  
    return Scaffold(  
      body: Center(  
        child: const AnimatedSearchBar(  
          ExpandableSearchBar(
            onTap: () {
              print(
                searchController!.text.toString(),
              );
            },
            hintText: "search something",
            editTextController: searchController,
          ),
        ),  
      ),  
    );  
  }  
}
https://user-images.githubusercontent.com/31685655/172936571-678e17bd-d4b8-4227-9396-9dfbc52abe67.png

Next Goals

  • [ ] Support mobile devices (Unfortunately it's only available for "Mouse" devices).

  • [ ] Change font style and color for text.

Support

You can support me by following me on https://img.shields.io/badge/Instagram-E4405F?style=flat-square&logo=instagram&logoColor=white and GitHub https://img.shields.io/github/followers/SalehTZ?logo=github&style=flat-square

And also don't forget to star this package on GitHub https://img.shields.io/github/stars/SalehTZ/expandable_search_bar?logo=github&style=flat-square