Skip to content

Commit

Permalink
reactive_color_picker 0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilich6107 committed Sep 13, 2021
1 parent 65c3ebe commit 290994f
Show file tree
Hide file tree
Showing 29 changed files with 885 additions and 516 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ Collection of advanced widgets based on Reactive Forms managed by [Melos](https:
- **[ReactivePinCodeTextField](https://pub.dev/packages/reactive_pin_code_fields)** - wrapper around [`pin_code_fields`](https://pub.dev/packages/pin_code_fields)
- **[ReactiveSlidingSegmentedControl](https://pub.dev/packages/reactive_sliding_segmented)** - wrapper around [`CupertinoSlidingSegmentedControl`](https://api.flutter.dev/flutter/cupertino/CupertinoSlidingSegmentedControl-class.html)
- **[ReactiveCupertinoSlider](https://pub.dev/packages/reactive_cupertino_slider)** - wrapper around [`CupertinoSlider`](https://api.flutter.dev/flutter/cupertino/CupertinoSlider-class.html)
- **[ReactiveColorPicker](https://pub.dev/packages/reactive_color_picker)** - wrapper around [`flutter_colorpicker`](https://pub.dev/packages/flutter_colorpicker)
117 changes: 0 additions & 117 deletions lib/reactive_color_picker/reactive_block_color_picker.dart

This file was deleted.

77 changes: 77 additions & 0 deletions packages/reactive_color_picker/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
pubspec.lock

# IntelliJ related
*.iml
*.ipr
*.iws
.fvm
example/ios/.symlinks
.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/
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
build/

# Android related
**/android/**/gradle-wrapper.jar
**/android/.gradle
**/android/captures/
**/android/gradlew
**/android/gradlew.bat
**/android/local.properties
**/android/**/GeneratedPluginRegistrant.java

# iOS/XCode related
**/ios/**/*.mode1v3
**/ios/**/*.mode2v3
**/ios/**/*.moved-aside
**/ios/**/*.pbxuser
**/ios/**/*.perspectivev3
**/ios/**/*sync/
**/ios/**/.sconsign.dblite
**/ios/**/.tags*
**/ios/**/.vagrant/
**/ios/**/DerivedData/
**/ios/**/Icon?
**/ios/**/Pods/
**/ios/**/.symlinks/
**/ios/**/profile
**/ios/**/xcuserdata
**/ios/.generated/
**/ios/Flutter/App.framework
**/ios/Flutter/Flutter.framework
**/ios/Flutter/Flutter.podspec
**/ios/Flutter/Generated.xcconfig
**/ios/Flutter/app.flx
**/ios/Flutter/app.zip
**/ios/Flutter/flutter_assets/
**/ios/Flutter/flutter_export_environment.sh
**/ios/ServiceDefinitions.json
**/ios/Runner/GeneratedPluginRegistrant.*

# Exceptions to above rules.
!**/ios/**/default.mode1v3
!**/ios/**/default.mode2v3
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
2 changes: 1 addition & 1 deletion packages/reactive_color_picker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## 0.0.1

* TODO: Describe initial release.
* initial release.
5 changes: 5 additions & 0 deletions packages/reactive_color_picker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# reactive_color_picker

Wrapper around [`flutter_colorpicker`](https://pub.dev/packages/flutter_colorpicker) to use with [`reactive_forms`](https://pub.dev/packages/reactive_forms)

Dos in progress. See [`example`](https://github.com/artflutter/reactive_forms_widgets/tree/master/packages/reactive_color_picker/example) folder for sample.
4 changes: 4 additions & 0 deletions packages/reactive_color_picker/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
analyzer:
strong-mode:
implicit-casts: false
implicit-dynamic: false
2 changes: 1 addition & 1 deletion packages/reactive_color_picker/example/.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# This file should be version controlled and should not be manually edited.

version:
revision: 4cc385b4b84ac2f816d939a49ea1f328c4e0b48e
revision: f4abaa0735eba4dfd8f33f73363911d63931fe03
channel: stable

project_type: app
29 changes: 0 additions & 29 deletions packages/reactive_color_picker/example/analysis_options.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions packages/reactive_color_picker/example/android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ 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
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,6 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileSdkVersion 30

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
jvmTarget = '1.8'
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
Expand Down
4 changes: 2 additions & 2 deletions packages/reactive_color_picker/example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ buildscript {
ext.kotlin_version = '1.3.50'
repositories {
google()
mavenCentral()
jcenter()
}

dependencies {
Expand All @@ -14,7 +14,7 @@ buildscript {
allprojects {
repositories {
google()
mavenCentral()
jcenter()
}
}

Expand Down
39 changes: 29 additions & 10 deletions packages/reactive_color_picker/example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
import 'package:flutter/material.dart';
// import 'package:reactive_color_picker/reactive_color_picker.dart';
import 'package:reactive_color_picker/reactive_color_picker.dart';

import 'package:reactive_forms/reactive_forms.dart';

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

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);

FormGroup buildForm() => fb.group({
'input': FormControl<Color>(),
'inputList': FormControl<List<Color>>(),
'material': FormControl<Color>(value: Colors.amber),
'colorPicker': FormControl<Color>(value: Colors.red),
'sliderColorPicker': FormControl<Color>(value: Colors.lime),
});

@override
Expand All @@ -22,7 +24,7 @@ class MyApp extends StatelessWidget {
appBar: AppBar(),
body: SafeArea(
child: SingleChildScrollView(
physics: const BouncingScrollPhysics(),
physics: BouncingScrollPhysics(),
padding: const EdgeInsets.symmetric(
horizontal: 20.0,
vertical: 20.0,
Expand All @@ -32,12 +34,29 @@ class MyApp extends StatelessWidget {
builder: (context, form, child) {
return Column(
children: [
// ReactiveBlockColorPicker<double>(
// formControlName: 'input',
// ),
const SizedBox(height: 16),
SizedBox(height: 16),
ReactiveBlockColorPicker<Color>(
formControlName: 'input',
),
SizedBox(height: 16),
ReactiveMultipleBlockColorPicker<List<Color>>(
formControlName: 'inputList',
),
SizedBox(height: 16),
ReactiveMaterialColorPicker<Color>(
formControlName: 'material',
),
SizedBox(height: 16),
ReactiveColorPicker<Color>(
formControlName: 'colorPicker',
),
SizedBox(height: 16),
ReactiveSliderColorPicker<Color>(
formControlName: 'sliderColorPicker',
),
SizedBox(height: 16),
ElevatedButton(
child: const Text('Sign Up'),
child: Text('Sign Up'),
onPressed: () {
if (form.valid) {
print(form.value);
Expand Down
Loading

0 comments on commit 290994f

Please sign in to comment.