Skip to content

Commit

Permalink
migrate plugin to dart package
Browse files Browse the repository at this point in the history
  • Loading branch information
ggichure committed Oct 1, 2022
1 parent 8a1ea1e commit 3321447
Show file tree
Hide file tree
Showing 192 changed files with 441 additions and 5,916 deletions.
80 changes: 6 additions & 74 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,78 +1,10 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/

# 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/
# Files and directories created by pub.
.dart_tool/
.flutter-plugins
.packages
.pub-cache/
.pub/
/build/



# Android related
**/android/**/gradle-wrapper.jar
**/android/.gradle
**/android/captures/
**/android/app/release/
**/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/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.*
# Conventional directory for build outputs.
build/

# Exceptions to above rules.
!**/ios/**/default.mode1v3
!**/ios/**/default.mode2v3
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
# Omit committing pubspec.lock for library packages; see
# https://dart.dev/guides/libraries/private-files#pubspeclock.
pubspec.lock
19 changes: 19 additions & 0 deletions .idea/libraries/Dart_SDK.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/runConfigurations/example_lib_main_dart.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 45 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .pubignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ example/.flutter-plugins-dependencies
example/android/app/src/main/kotlin/com/ggichure/github/example/MainActivity.kt
example/android/app/src/main/kotlin/com/ggichure/github/hexcolor_example/MainActivity.kt


example/*
# Miscellaneous
*.class
*.log
Expand Down
23 changes: 17 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,52 @@
# 3.0.0

HexColor is now a dart package.

# 2.0.7

When using HexColor('#000'), this will be parsed as transparent, because Color(0) == Colors.transparent

## 2.0.6

support for dart 2.15
added buy me a coffee
## 2.0.5

## 2.0.5

## 2.0.4

## 2.0.3

## 2.0.2

null safety

## 2.0.0

remove unused files in lib

## 1.0.6

use channel stable

## 1.0.5
# Breaking changes
```Hexcolor``` to ```HexColor```

# Breaking changes

`Hexcolor` to `HexColor`

Conver color to hex

``` ColorToHex(Colors.teal)```
` ColorToHex(Colors.teal)`

## 1.0.4

support web,linux,macos and windows

## 1.0.2
## 1.0.2

update dart sdk version

## 0.0.1

* TODO: Describe initial release.
- TODO: Describe initial release.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<p align="center">

<a href="https://opensource.org/licenses/BSD-3-Clause"><img src="https://img.shields.io/badge/licence-BSD%203-brightgreen" alt="License: BSD 3"></a>
<a href="https://pub.dev/packages/hexcolor"><img src="https://img.shields.io/badge/pub.dev-147-blue" alt="Pub.dev 147"></a>
<a href="https://pub.dev/packages/hexcolor"><img src="https://img.shields.io/badge/pub.dev-213-blue" alt="Pub.dev 213"></a>

</p>


# hexcolor_example

how to use the hexcolor plugin.
Expand All @@ -18,7 +17,7 @@ sample usage

```dart
import 'package:hexcolor/hexcolor.dart';
Text(
Text(
'Running on: $_platformVersion\n',
style: TextStyle(color: HexColor("#f2f2f2")),
),
Expand All @@ -31,16 +30,14 @@ import 'package:hexcolor/hexcolor.dart';
```
Hexcolor("#yourhex")
```

<p> <img src="https://raw.githubusercontent.com/ggichure/hexcolor/master/Screenshot%20from%202019-12-10%2008-49-21.png"/>
</p>


### Color to hex

```
String textColor = ColorToHex(Colors.teal).toString();
```


[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/ggriffo)

30 changes: 28 additions & 2 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
include: package:flutter_lints/flutter.yaml
# This file configures the static analysis results for your project (errors,
# warnings, and lints).
#
# This enables the 'recommended' set of lints from `package:lints`.
# This set helps identify many issues that may lead to problems when running
# or consuming Dart code, and enforces writing Dart using a single, idiomatic
# style and format.
#
# If you want a smaller set of lints you can change this to specify
# 'package:lints/core.yaml'. These are just the most critical lints
# (the recommended set includes the core lints).
# The core lints are also what is used by pub.dev for scoring packages.

# Additional information about this file can be found at
include: package:lints/recommended.yaml

# Uncomment the following section to specify additional rules.

# linter:
# rules:
# - camel_case_types

# analyzer:
# exclude:
# - path/to/excluded/files/**

# For more information about the core and recommended set of lints, see
# https://dart.dev/go/core-lints

# For additional information about configuring this file, see
# https://dart.dev/guides/language/analysis-options
8 changes: 0 additions & 8 deletions android/.gitignore

This file was deleted.

40 changes: 0 additions & 40 deletions android/build.gradle

This file was deleted.

3 changes: 0 additions & 3 deletions android/gradle.properties

This file was deleted.

5 changes: 0 additions & 5 deletions android/gradle/wrapper/gradle-wrapper.properties

This file was deleted.

1 change: 0 additions & 1 deletion android/settings.gradle

This file was deleted.

3 changes: 0 additions & 3 deletions android/src/main/AndroidManifest.xml

This file was deleted.

Loading

0 comments on commit 3321447

Please sign in to comment.