ggichure / hexcolor Goto Github PK
View Code? Open in Web Editor NEWA flutter plugin for bringing hex colors to dart hexcolorPlugin
Home Page: https://pub.dev/packages/hexcolor
License: BSD 3-Clause "New" or "Revised" License
A flutter plugin for bringing hex colors to dart hexcolorPlugin
Home Page: https://pub.dev/packages/hexcolor
License: BSD 3-Clause "New" or "Revised" License
Issue is still occurring in latest version
Originally posted by @JAYTARPARA in #1 (comment)
Getting following error while building a XCFramework from flutter module.
**[!] Unable to determine Swift version for the following pods:
hexcolor
does not specify a Swift version and none of the targets (Runner
) integrating it have the SWIFT_VERSION
attribute set. Please contact the author or set the SWIFT_VERSION
attribute in at least one of the targets that integrate this pod.**I am having this error:
HexcolorPlugin.m:2:9: fatal error: 'hexcolor/hexcolor-Swift.h' file not found
#import <hexcolor/hexcolor-Swift.h>
We are adding
HexColor('#ffffff')
in our code..
What's the need of "#" ?
There are over thousand sites + maximum sites which show hex colors just copies the code without "#"...
Also, all he's codes start with hashtag, so making it default to enter only hex code will be easy
Looks like no functionality of the underlying platform is need at all.
Would be great for this to provide a toHex function as an extension on color
1.0.5
has breaking change and causes dependency problem to every dependents2.0
var string hexcode = ColorToHex(HexColor('#460000')).toString();
Expected: '#460000'
Actual: 'Color(0xff460000)'
Try correcting the name to the name of an existing method, or defining a method named 'Hexcolor'.
[√] Flutter (Channel stable, 2.0.3, on Microsoft Windows [Version 10.0.19041.1083], locale en-US)
• Flutter version 2.0.3 at F:\flutter_sdk\flutter
• Framework revision 4d7946a68d (4 months ago), 2021-03-18 17:24:33 -0700
• Engine revision 3459eb2436
• Dart version 2.12.2
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at \AppData\Local\Android\Sdk
• Platform android-30, build-tools 30.0.2
• ANDROID_HOME = \AppData\Local\Android\Sdk
• ANDROID_SDK_ROOT = \AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 4.1.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] VS Code (version 1.58.0)
• VS Code at \AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.24.0
[√] Connected device (4 available)
• vivo 1818 (mobile) • d14b5985 • android-arm64 • Android 11 (API 30)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 91.0.4472.124
• Edge (web) • edge • web-javascript • Microsoft Edge 91.0.864.67
• No issues found!
Process finished with exit code 0
After update my flutter into 1.22.1 in stable channel hexcolor is not working. I try pub get, pub upgrade, run flutter doctor but still remain the problem and I didn't see any issue in flutter doctor.
C:\src\flutter\bin\flutter.bat doctor --verbose
[√] Flutter (Channel stable, 1.22.1, on Microsoft Windows [Version 10.0.18363.1082], locale en-US)
• Flutter version 1.22.1 at C:\src\flutter
• Framework revision f30b7f4db9 (4 days ago), 2020-10-08 10:06:30 -0700
• Engine revision 75bef9f6c8
• Dart version 2.10.1
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at D:\ProgramFiles\Sdk
• Platform android-30, build-tools 30.0.2
• ANDROID_HOME = D:\ProgramFiles\Sdk
• Java binary at: D:\ProgramFiles\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Android Studio (version 4.0)
• Android Studio at D:\ProgramFiles\Android\Android Studio
• Flutter plugin version 50.0.1
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] VS Code (version 1.50.0)
• VS Code at C:\Users\RBFBD LTD\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.15.0
[√] Connected device (1 available)
• HTC One M9 (mobile) • HC4BRYC12938 • android-arm64 • Android 6.0 (API 23)
• No issues found!
Process finished with exit code 0
Lines 6 to 11 in b4d0914
Same for the tests, web version and the native plugins.
Hey there,
First of all thanks for the package, really useful.
I'm using it for a long time, but today i've checked this warning:
The plugins hexcolor
use a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2 embedding. Otherwise, consider removing them since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
I don't know if this is a package issue or something with my project.
Appreciate your comments.
I've updated my project Android dependencies to:
classpath 'com.android.tools.build:gradle:7.3.0'
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
and the project cannot compile with error:
FAILURE: Build failed with an exception.
* What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':hexcolor' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50
changelog is reversed
The newest should be in the top.
Can I create pull request with CHANGELOG.md lines reversed ?.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.