-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ceb1755
Showing
101 changed files
with
10,646 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/Users/yelamanyelmuratov/fvm/versions/3.16.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"flutterSdkVersion": "3.16.9", | ||
"flavors": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Miscellaneous | ||
*.class | ||
*.log | ||
*.pyc | ||
*.swp | ||
.DS_Store | ||
.atom/ | ||
.buildlog/ | ||
.history | ||
.svn/ | ||
migrate_working_dir/ | ||
|
||
# IntelliJ related | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
|
||
# The .vscode folder contains launch configuration and tasks you configure in | ||
# VS Code which you may wish to be included in version control, so this line | ||
# is commented out by default. | ||
#.vscode/ | ||
|
||
# Flutter/Dart/Pub related | ||
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. | ||
/pubspec.lock | ||
**/doc/api/ | ||
.dart_tool/ | ||
build/ | ||
|
||
# Explicitly track these files, even if others are ignored | ||
!lib/rich_textfield.dart | ||
!lib/src/decoration/rich_input_decorator.dart | ||
!lib/src/textfield/rich_text_form_field.dart | ||
!lib/src/textfield/rich_textfield.dart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This file tracks properties of this Flutter project. | ||
# Used by Flutter tool to assess capabilities and perform upgrades etc. | ||
# | ||
# This file should be version controlled and should not be manually edited. | ||
|
||
version: | ||
revision: "67457e669f79e9f8d13d7a68fe09775fefbb79f4" | ||
channel: "stable" | ||
|
||
project_type: package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"dart.additionalAnalyzerFileExtensions": [ | ||
"drift" | ||
], | ||
"dart.lineLength": 80, | ||
"dart.flutterSdkPath": ".fvm/flutter_sdk" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## 1.0.1 | ||
Features: | ||
- Customizable hint | ||
- Customizable label | ||
- Data serialization | ||
- Customizable text features with RTFTextFieldController | ||
Changes: | ||
- Updated README file | ||
- Refactoring | ||
- Bug fix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
The MIT License (MIT) | ||
Copyright © 2023, shodev.live | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
<div align="center"> | ||
<p align="center"> | ||
<a href="https://github.com/K1yoshiSho/rtf_textfield" align="center"> | ||
<img src="https://github.com/K1yoshiSho/rtf_textfield/blob/main/assets/images/rich_text_field.png?raw=true" width="400px"> | ||
</a> | ||
</p> | ||
</div> | ||
|
||
<h2 align="center"> Flutter custom widget to create Rich TextField 🚀 </h2> | ||
|
||
<p align="center"> | ||
Included RTFTextFieldController for customize text, hint and label TextSpan 😊 | ||
<br> | ||
<span style="font-size: 0.9em"> Show some ❤️ and <a href="https://github.com/K1yoshiSho/rtf_textfield.git">star the repo</a> to support the project! </span> | ||
</p> | ||
|
||
<p align="center"> | ||
<a href="https://pub.dev/packages/rtf_textfield"><img src="https://img.shields.io/pub/v/rtf_textfield.svg" alt="Pub"></a> | ||
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License: MIT"></a> | ||
<a href="https://github.com/K1yoshiSho/rtf_textfield"><img src="https://hits.dwyl.com/K1yoshiSho/rtf_textfield.svg?style=flat" alt="Repository views"></a> | ||
<a href="https://github.com/K1yoshiSho/rtf_textfield"><img src="https://img.shields.io/github/stars/K1yoshiSho/rtf_textfield?style=social" alt="Pub"></a> | ||
</p> | ||
<p align="center"> | ||
<a href="https://pub.dev/packages/rtf_textfield/score"><img src="https://img.shields.io/pub/likes/rtf_textfield?logo=flutter" alt="Pub likes"></a> | ||
<a href="https://pub.dev/packages/rtf_textfield/score"><img src="https://img.shields.io/pub/popularity/rtf_textfield?logo=flutter" alt="Pub popularity"></a> | ||
<a href="https://pub.dev/packages/rtf_textfield/score"><img src="https://img.shields.io/pub/points/rtf_textfield?logo=flutter" alt="Pub points"></a> | ||
</p> | ||
|
||
<br> | ||
|
||
## 📌 Features | ||
|
||
- ✅ Customizable hint | ||
- ✅ Customizable label | ||
- ✅ Data serialization *(Store and fetch styled text in JSON format)* | ||
- ✅ Customizable text features with `RTFTextFieldController` *(change color, style, size, wight, etc.)* | ||
|
||
## 📌 Getting Started | ||
Follow these steps to use this package | ||
|
||
### Add dependency | ||
|
||
```yaml | ||
dependencies: | ||
rtf_textfield: ^1.0.1 | ||
``` | ||
### Add import package | ||
```dart | ||
import 'package:rtf_textfield/rtf_textfield.dart'; | ||
``` | ||
|
||
### Easy to use | ||
Simple example of use `RTFTextField`<br> | ||
Put this code in your project at an screen and learn how it works 😊 | ||
|
||
<div style="display: flex; flex-direction: row; align-items: flex-start; justify-content: flex-start;"> | ||
<img src="https://github.com/K1yoshiSho/rtf_textfield/blob/main/assets/images/screenshot1.png?raw=true" | ||
alt="Screenshot" width="250" style="margin-right: 10px;"/> | ||
<img src="https://github.com/K1yoshiSho/rtf_textfield/blob/main/assets/images/screenshot2.png?raw=true" | ||
alt="Screenshot" width="250" style="margin-right: 10px;"/> | ||
<img src="https://github.com/K1yoshiSho/rtf_textfield/blob/main/assets/images/screenshot3.png?raw=true" | ||
alt="Screenshot" width="250" style="margin-right: 10px;"/> | ||
</div> | ||
|
||
| ||
|
||
Widget part: | ||
```dart | ||
RTFTextField( | ||
onTapOutside: (event) { | ||
FocusManager.instance.primaryFocus?.unfocus(); | ||
}, | ||
decoration: const RichInputDecoration( | ||
border: OutlineInputBorder( | ||
borderRadius: BorderRadius.all(Radius.circular(16)), | ||
), | ||
enabledBorder: OutlineInputBorder( | ||
borderSide: BorderSide( | ||
color: Colors.grey, | ||
), | ||
borderRadius: BorderRadius.all(Radius.circular(16)), | ||
), | ||
labelTextSpan: TextSpan( | ||
text: 'Enter your name', | ||
children: [ | ||
TextSpan( | ||
text: ' *', | ||
style: TextStyle( | ||
color: Colors.red, | ||
), | ||
), | ||
], | ||
), | ||
hintTextSpan: TextSpan( | ||
text: 'Yelaman', | ||
), | ||
), | ||
controller: controller, | ||
), | ||
``` | ||
|
||
Change text weight using `RTFTextFieldController`: | ||
|
||
```dart | ||
controller.toggleBold(); | ||
``` | ||
|
||
|
||
### 📌 Examples | ||
You can check more examples of using this package [here](example/lib) | ||
|
||
<br> | ||
<div align="center" > | ||
<p>Thanks to all contributors of this package</p> | ||
<a href="https://github.com/K1yoshiSho/rtf_textfield/graphs/contributors"> | ||
<img src="https://contrib.rocks/image?repo=K1yoshiSho/rtf_textfield" /> | ||
</a> | ||
</div> | ||
<br> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
include: package:flutter_lints/flutter.yaml | ||
|
||
# Additional information about this file can be found at | ||
# https://dart.dev/guides/language/analysis-options |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Miscellaneous | ||
*.class | ||
*.log | ||
*.pyc | ||
*.swp | ||
.DS_Store | ||
.atom/ | ||
.buildlog/ | ||
.history | ||
.svn/ | ||
migrate_working_dir/ | ||
|
||
# IntelliJ related | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
|
||
# The .vscode folder contains launch configuration and tasks you configure in | ||
# VS Code which you may wish to be included in version control, so this line | ||
# is commented out by default. | ||
#.vscode/ | ||
|
||
# Flutter/Dart/Pub related | ||
**/doc/api/ | ||
**/ios/Flutter/.last_build_id | ||
.dart_tool/ | ||
.flutter-plugins | ||
.flutter-plugins-dependencies | ||
.pub-cache/ | ||
.pub/ | ||
/build/ | ||
|
||
# Symbolication related | ||
app.*.symbols | ||
|
||
# Obfuscation related | ||
app.*.map.json | ||
|
||
# Android Studio will place build artifacts here | ||
/android/app/debug | ||
/android/app/profile | ||
/android/app/release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This file tracks properties of this Flutter project. | ||
# Used by Flutter tool to assess capabilities and perform upgrades etc. | ||
# | ||
# This file should be version controlled and should not be manually edited. | ||
|
||
version: | ||
revision: "67457e669f79e9f8d13d7a68fe09775fefbb79f4" | ||
channel: "stable" | ||
|
||
project_type: app | ||
|
||
# Tracks metadata for the flutter migrate command | ||
migration: | ||
platforms: | ||
- platform: root | ||
create_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4 | ||
base_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4 | ||
- platform: android | ||
create_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4 | ||
base_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4 | ||
- platform: ios | ||
create_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4 | ||
base_revision: 67457e669f79e9f8d13d7a68fe09775fefbb79f4 | ||
|
||
# User provided section | ||
|
||
# List of Local paths (relative to this file) that should be | ||
# ignored by the migrate tool. | ||
# | ||
# Files that are not part of the templates will be ignored by default. | ||
unmanaged_files: | ||
- 'lib/main.dart' | ||
- 'ios/Runner.xcodeproj/project.pbxproj' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# example | ||
|
||
A new Flutter project. | ||
|
||
## Getting Started | ||
|
||
This project is a starting point for a Flutter application. | ||
|
||
A few resources to get you started if this is your first Flutter project: | ||
|
||
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) | ||
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) | ||
|
||
For help getting started with Flutter development, view the | ||
[online documentation](https://docs.flutter.dev/), which offers tutorials, | ||
samples, guidance on mobile development, and a full API reference. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# This file configures the analyzer, which statically analyzes Dart code to | ||
# check for errors, warnings, and lints. | ||
# | ||
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled | ||
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be | ||
# invoked from the command line by running `flutter analyze`. | ||
|
||
# The following line activates a set of recommended lints for Flutter apps, | ||
# packages, and plugins designed to encourage good coding practices. | ||
include: package:flutter_lints/flutter.yaml | ||
|
||
linter: | ||
# The lint rules applied to this project can be customized in the | ||
# section below to disable rules from the `package:flutter_lints/flutter.yaml` | ||
# included above or to enable additional rules. A list of all available lints | ||
# and their documentation is published at https://dart.dev/lints. | ||
# | ||
# Instead of disabling a lint rule for the entire project in the | ||
# section below, it can also be suppressed for a single line of code | ||
# or a specific dart file by using the `// ignore: name_of_lint` and | ||
# `// ignore_for_file: name_of_lint` syntax on the line or in the file | ||
# producing the lint. | ||
rules: | ||
# avoid_print: false # Uncomment to disable the `avoid_print` rule | ||
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule | ||
|
||
# Additional information about this file can be found at | ||
# https://dart.dev/guides/language/analysis-options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
gradle-wrapper.jar | ||
/.gradle | ||
/captures/ | ||
/gradlew | ||
/gradlew.bat | ||
/local.properties | ||
GeneratedPluginRegistrant.java | ||
|
||
# Remember to never publicly share your keystore. | ||
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app | ||
key.properties | ||
**/*.keystore | ||
**/*.jks |
Oops, something went wrong.