Skip to content

Commit 60039f9

Browse files
committedOct 5, 2024·
Prepare for a release
1 parent 1aaf349 commit 60039f9

7 files changed

+182
-24
lines changed
 

‎.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@n-bernat
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# flutter_tests_*.yaml actions are duplicated, because GitHub doesn't support badges for matrix builds.
2+
name: app_preferences - Tests (beta)
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- master
9+
schedule:
10+
- cron: "0 0 * * 0"
11+
12+
jobs:
13+
build:
14+
timeout-minutes: 5
15+
name: Flutter tests
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Install Flutter
22+
uses: subosito/flutter-action@v2
23+
with:
24+
channel: "beta"
25+
26+
- name: Print version
27+
run: flutter --version
28+
29+
- name: Get dependencies
30+
run: flutter pub get
31+
32+
- name: Check formatting
33+
run: dart format . --set-exit-if-changed
34+
35+
- name: Run analyzer
36+
run: flutter analyze
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# flutter_tests_*.yaml actions are duplicated, because GitHub doesn't support badges for matrix builds.
2+
name: app_preferences - Tests (3.24.0)
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- master
9+
schedule:
10+
- cron: "0 0 * * 0"
11+
12+
jobs:
13+
build:
14+
timeout-minutes: 5
15+
name: Flutter tests
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Install Flutter
22+
uses: subosito/flutter-action@v2
23+
with:
24+
cache: true
25+
flutter-version: "3.24.0"
26+
channel: "stable"
27+
28+
- name: Print version
29+
run: flutter --version
30+
31+
- name: Get dependencies
32+
run: flutter pub get
33+
34+
- name: Check formatting
35+
run: dart format . --set-exit-if-changed
36+
37+
- name: Run analyzer
38+
run: flutter analyze
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# flutter_tests_*.yaml actions are duplicated, because GitHub doesn't support badges for matrix builds.
2+
name: app_preferences - Tests (stable)
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- master
9+
schedule:
10+
- cron: "0 0 * * 0"
11+
12+
jobs:
13+
build:
14+
timeout-minutes: 5
15+
name: Flutter tests
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Install Flutter
22+
uses: subosito/flutter-action@v2
23+
with:
24+
cache: true
25+
channel: "stable"
26+
27+
- name: Print version
28+
run: flutter --version
29+
30+
- name: Get dependencies
31+
run: flutter pub get
32+
33+
- name: Check formatting
34+
run: dart format . --set-exit-if-changed
35+
36+
- name: Run analyzer
37+
run: flutter analyze

‎.github/workflows/publish.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish to pub.dev
2+
on:
3+
push:
4+
tags:
5+
- "v[0-9]+.[0-9]+.[0-9]+*"
6+
7+
jobs:
8+
publish:
9+
name: Publish to pub.dev
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
id-token: write
14+
15+
steps:
16+
- name: Clone repository
17+
uses: actions/checkout@v3
18+
19+
- name: Install Dart
20+
uses: dart-lang/setup-dart@v1
21+
with:
22+
sdk: stable
23+
24+
- name: Install Flutter
25+
uses: subosito/flutter-action@v2
26+
with:
27+
channel: "stable"
28+
29+
- name: Publish to pub.dev
30+
run: flutter pub publish --force

‎README.md

+39-23
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,55 @@
1-
<!--
2-
This README describes the package. If you publish this package to pub.dev,
3-
this README's contents appear on the landing page for your package.
1+
# flutter_smooth_gradient
42

5-
For information about how to write a good package README, see the guide for
6-
[writing package pages](https://dart.dev/tools/pub/writing-package-pages).
3+
[![Package](https://img.shields.io/pub/v/flutter_smooth_gradient.svg)](https://pub.dev/packages/flutter_smooth_gradient) [![Publisher](https://img.shields.io/pub/publisher/flutter_smooth_gradient.svg)](https://pub.dev/packages/flutter_smooth_gradient/publisher) [![MIT License](https://img.shields.io/badge/license-MIT-purple.svg)](https://opensource.org/licenses/MIT) [![LeanCode Style](https://img.shields.io/badge/style-leancode__lint-black)](https://pub.dartlang.org/packages/leancode_lint)
74

8-
For general information about developing packages, see the Dart guide for
9-
[creating packages](https://dart.dev/guides/libraries/create-packages)
10-
and the Flutter guide for
11-
[developing packages and plugins](https://flutter.dev/to/develop-packages).
12-
-->
5+
`flutter_smooth_gradient` is a package that allows you to create linear gradients that use a specific curve.
136

14-
TODO: Put a short description of the package here that helps potential users
15-
know whether this package might be useful for them.
7+
| Status | Comments |
8+
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------: |
9+
| [![flutter_smooth_gradient - Tests (stable)](https://github.com/n-bernat/flutter_smooth_gradient/actions/workflows/flutter_tests_stable.yaml/badge.svg)](https://github.com/n-bernat/flutter_smooth_gradient/actions/workflows/flutter_tests_stable.yaml) | Current stable Flutter version |
10+
| [![flutter_smooth_gradient - Tests (beta)](https://github.com/n-bernat/flutter_smooth_gradient/actions/workflows/flutter_tests_beta.yaml/badge.svg)](https://github.com/n-bernat/flutter_smooth_gradient/actions/workflows/flutter_tests_beta.yaml) | Current beta Flutter version |
11+
| [![flutter_smooth_gradient - Tests (3.24.0)](https://github.com/n-bernat/flutter_smooth_gradient/actions/workflows/flutter_tests_min.yaml/badge.svg)](https://github.com/n-bernat/flutter_smooth_gradient/actions/workflows/flutter_tests_min.yaml) | The oldest supported Flutter version |
1612

17-
## Features
13+
## Getting started
1814

19-
TODO: List what your package can do. Maybe include images, gifs, or videos.
15+
1. Add this package to your dependencies.
2016

21-
## Getting started
17+
```yaml
18+
dependencies:
19+
smooth_gradient: latest_version
20+
```
2221
23-
TODO: List prerequisites and provide or point to information on how to
24-
start using the package.
22+
2. Get the dependencies.
23+
24+
```sh
25+
flutter pub get
26+
```
2527

2628
## Usage
2729

28-
TODO: Include short and useful examples for package users. Add longer examples
29-
to `/example` folder.
30+
Replace `LinearGradient` with a `SmoothGradient` and optionally provide a curve.
3031

3132
```dart
32-
const like = 'sample';
33+
return DecoratedBox(
34+
decoration: BoxDecoration(
35+
gradient: SmoothGradient(
36+
begin: Alignment.topCenter,
37+
end: Alignment.bottomCenter,
38+
from: Colors.black,
39+
to: Colors.white,
40+
),
41+
),
42+
child: const SizedBox.square(
43+
dimension: 100,
44+
),
45+
);
3346
```
3447

3548
## Additional information
3649

37-
TODO: Tell users more about the package: where to find more information, how to
38-
contribute to the package, how to file issues, what response they can expect
39-
from the package authors, and more.
50+
- This package requires at least Flutter 3.24 to work.
51+
- If there are any issues feel free to go to [GitHub Issues](https://github.com/n-bernat/flutter_smooth_gradient/issues) and report a bug.
52+
53+
## Maintainers
54+
55+
- [Nikodem Bernat](https://nikodembernat.com)

‎pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: smooth_gradient
2-
description: "A new Flutter package project."
2+
description: "A package that allows you to create gradients that use a specific curve."
33
version: 0.0.1
44
homepage: "https://nikodembernat.com"
55
repository: "https://github.com/n-bernat/flutter_smooth_gradient"

0 commit comments

Comments
 (0)
Please sign in to comment.