Skip to content

Commit 94239fe

Browse files
committed
initial commit
0 parents  commit 94239fe

13 files changed

+795
-0
lines changed

.gitignore

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
12+
# IntelliJ related
13+
*.iml
14+
*.ipr
15+
*.iws
16+
.idea/
17+
18+
# The .vscode folder contains launch configuration and tasks you configure in
19+
# VS Code which you may wish to be included in version control, so this line
20+
# is commented out by default.
21+
#.vscode/
22+
23+
# Flutter/Dart/Pub related
24+
**/doc/api/
25+
.dart_tool/
26+
.flutter-plugins
27+
.flutter-plugins-dependencies
28+
.packages
29+
.pub-cache/
30+
.pub/
31+
build/
32+
33+
# Android related
34+
**/android/**/gradle-wrapper.jar
35+
**/android/.gradle
36+
**/android/captures/
37+
**/android/gradlew
38+
**/android/gradlew.bat
39+
**/android/local.properties
40+
**/android/**/GeneratedPluginRegistrant.java
41+
42+
# iOS/XCode related
43+
**/ios/**/*.mode1v3
44+
**/ios/**/*.mode2v3
45+
**/ios/**/*.moved-aside
46+
**/ios/**/*.pbxuser
47+
**/ios/**/*.perspectivev3
48+
**/ios/**/*sync/
49+
**/ios/**/.sconsign.dblite
50+
**/ios/**/.tags*
51+
**/ios/**/.vagrant/
52+
**/ios/**/DerivedData/
53+
**/ios/**/Icon?
54+
**/ios/**/Pods/
55+
**/ios/**/.symlinks/
56+
**/ios/**/profile
57+
**/ios/**/xcuserdata
58+
**/ios/.generated/
59+
**/ios/Flutter/App.framework
60+
**/ios/Flutter/Flutter.framework
61+
**/ios/Flutter/Flutter.podspec
62+
**/ios/Flutter/Generated.xcconfig
63+
**/ios/Flutter/app.flx
64+
**/ios/Flutter/app.zip
65+
**/ios/Flutter/flutter_assets/
66+
**/ios/Flutter/flutter_export_environment.sh
67+
**/ios/ServiceDefinitions.json
68+
**/ios/Runner/GeneratedPluginRegistrant.*
69+
70+
# Exceptions to above rules.
71+
!**/ios/**/default.mode1v3
72+
!**/ios/**/default.mode2v3
73+
!**/ios/**/default.pbxuser
74+
!**/ios/**/default.perspectivev3

.metadata

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: 78910062997c3a836feee883712c241a5fd22983
8+
channel: stable
9+
10+
project_type: package

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## [0.0.4]
2+
* Updated Readme
3+
4+
## [0.0.2]
5+
* Addded examples
6+
7+
## [0.0.1] - Hello World.

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Sai Gokula Krishnan
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Anim Search Bar
2+
3+
### Code
4+
<img src="https://i.ibb.co/k80JSS3/carbon.png">
5+
6+
### Output
7+
<img src ="https://i.ibb.co/YyPgkgg/ezgif-com-gif-maker.gif">
8+
9+
## Parameters
10+
- width
11+
- Type: double
12+
- <b>Required</b>
13+
- textController
14+
- Type: TextEditingController
15+
- <b>Required</b>
16+
- onSuffixTap
17+
- Type: Function
18+
- <b>Required</b>
19+
- suffixIcon
20+
- Type: IconData
21+
- <i>Optional</i>
22+
- prefixIcon
23+
- Type: IconData
24+
- <i>Optional</i>
25+
- animationDurationInMilli
26+
- Type: int
27+
- <i>Optional</i>
28+
- helpText
29+
- Type: String
30+
- <i>Optional</i>

example/main.dart

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import 'package:anim_search_bar/anim_search_bar.dart';
2+
import 'package:flutter/material.dart';
3+
4+
void main() async {
5+
runApp(MyApp());
6+
}
7+
8+
class MyApp extends StatelessWidget {
9+
@override
10+
Widget build(BuildContext context) {
11+
return MaterialApp(
12+
debugShowCheckedModeBanner: false,
13+
title: 'Anim search bar Example',
14+
home: App(),
15+
);
16+
}
17+
}
18+
19+
class App extends StatefulWidget {
20+
@override
21+
_AppState createState() => _AppState();
22+
}
23+
24+
class _AppState extends State<App> {
25+
TextEditingController textController = TextEditingController();
26+
27+
@override
28+
Widget build(BuildContext context) {
29+
return Padding(
30+
padding: const EdgeInsets.only(top: 58.0, right: 10, left: 10),
31+
32+
/// In AnimSearchBar widget, the width, textController, onSuffixTap are required properties.
33+
/// You have also control over the suffixIcon, prefixIcon, helpText and animationDurationInMilli
34+
child: AnimSearchBar(
35+
width: 400,
36+
textController: textController,
37+
onSuffixTap: () {
38+
setState(() {
39+
textController.clear();
40+
});
41+
},
42+
),
43+
);
44+
}
45+
}

example/pubspec.lock

+154
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
# Generated by pub
2+
# See https://dart.dev/tools/pub/glossary#lockfile
3+
packages:
4+
anim_search_bar:
5+
dependency: "direct main"
6+
description:
7+
name: anim_search_bar
8+
url: "https://pub.dartlang.org"
9+
source: hosted
10+
version: "0.0.1"
11+
async:
12+
dependency: transitive
13+
description:
14+
name: async
15+
url: "https://pub.dartlang.org"
16+
source: hosted
17+
version: "2.5.0-nullsafety.1"
18+
boolean_selector:
19+
dependency: transitive
20+
description:
21+
name: boolean_selector
22+
url: "https://pub.dartlang.org"
23+
source: hosted
24+
version: "2.1.0-nullsafety.1"
25+
characters:
26+
dependency: transitive
27+
description:
28+
name: characters
29+
url: "https://pub.dartlang.org"
30+
source: hosted
31+
version: "1.1.0-nullsafety.3"
32+
charcode:
33+
dependency: transitive
34+
description:
35+
name: charcode
36+
url: "https://pub.dartlang.org"
37+
source: hosted
38+
version: "1.2.0-nullsafety.1"
39+
clock:
40+
dependency: transitive
41+
description:
42+
name: clock
43+
url: "https://pub.dartlang.org"
44+
source: hosted
45+
version: "1.1.0-nullsafety.1"
46+
collection:
47+
dependency: transitive
48+
description:
49+
name: collection
50+
url: "https://pub.dartlang.org"
51+
source: hosted
52+
version: "1.15.0-nullsafety.3"
53+
fake_async:
54+
dependency: transitive
55+
description:
56+
name: fake_async
57+
url: "https://pub.dartlang.org"
58+
source: hosted
59+
version: "1.2.0-nullsafety.1"
60+
flutter:
61+
dependency: "direct main"
62+
description: flutter
63+
source: sdk
64+
version: "0.0.0"
65+
flutter_test:
66+
dependency: "direct dev"
67+
description: flutter
68+
source: sdk
69+
version: "0.0.0"
70+
matcher:
71+
dependency: transitive
72+
description:
73+
name: matcher
74+
url: "https://pub.dartlang.org"
75+
source: hosted
76+
version: "0.12.10-nullsafety.1"
77+
meta:
78+
dependency: transitive
79+
description:
80+
name: meta
81+
url: "https://pub.dartlang.org"
82+
source: hosted
83+
version: "1.3.0-nullsafety.3"
84+
path:
85+
dependency: transitive
86+
description:
87+
name: path
88+
url: "https://pub.dartlang.org"
89+
source: hosted
90+
version: "1.8.0-nullsafety.1"
91+
sky_engine:
92+
dependency: transitive
93+
description: flutter
94+
source: sdk
95+
version: "0.0.99"
96+
source_span:
97+
dependency: transitive
98+
description:
99+
name: source_span
100+
url: "https://pub.dartlang.org"
101+
source: hosted
102+
version: "1.8.0-nullsafety.2"
103+
stack_trace:
104+
dependency: transitive
105+
description:
106+
name: stack_trace
107+
url: "https://pub.dartlang.org"
108+
source: hosted
109+
version: "1.10.0-nullsafety.1"
110+
stream_channel:
111+
dependency: transitive
112+
description:
113+
name: stream_channel
114+
url: "https://pub.dartlang.org"
115+
source: hosted
116+
version: "2.1.0-nullsafety.1"
117+
string_scanner:
118+
dependency: transitive
119+
description:
120+
name: string_scanner
121+
url: "https://pub.dartlang.org"
122+
source: hosted
123+
version: "1.1.0-nullsafety.1"
124+
term_glyph:
125+
dependency: transitive
126+
description:
127+
name: term_glyph
128+
url: "https://pub.dartlang.org"
129+
source: hosted
130+
version: "1.2.0-nullsafety.1"
131+
test_api:
132+
dependency: transitive
133+
description:
134+
name: test_api
135+
url: "https://pub.dartlang.org"
136+
source: hosted
137+
version: "0.2.19-nullsafety.2"
138+
typed_data:
139+
dependency: transitive
140+
description:
141+
name: typed_data
142+
url: "https://pub.dartlang.org"
143+
source: hosted
144+
version: "1.3.0-nullsafety.3"
145+
vector_math:
146+
dependency: transitive
147+
description:
148+
name: vector_math
149+
url: "https://pub.dartlang.org"
150+
source: hosted
151+
version: "2.1.0-nullsafety.3"
152+
sdks:
153+
dart: ">=2.10.0-110 <2.11.0"
154+
flutter: ">=1.17.0"

example/pubspec.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: test_app
2+
description: testApp
3+
4+
publish_to: "none"
5+
6+
version: 1.0.0+1
7+
8+
environment:
9+
sdk: ">=2.7.0 <3.0.0"
10+
11+
dependencies:
12+
flutter:
13+
sdk: flutter
14+
anim_search_bar:
15+
16+
17+
18+
dev_dependencies:
19+
flutter_test:
20+
sdk: flutter
21+
22+
flutter:
23+
uses-material-design: true
24+
# assets:
25+
# - assets/

lib/anim_search_bar.dart

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
library anim_search_bar;
2+
3+
///Exporting the anim_search_widget file
4+
export './src/anim_search_widget.dart';

0 commit comments

Comments
 (0)