Skip to content

Commit

Permalink
Update flutter_scroll_shadow dependency, add GitHub Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
rickypid committed Sep 4, 2023
1 parent 0df9b0e commit a0012ee
Show file tree
Hide file tree
Showing 11 changed files with 105 additions and 63 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/flutter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Flutter

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'

- name: Install dependencies
run: flutter pub get

- name: Analyze project source
run: dart analyze

- name: Flutter test
run: flutter test

- name: Install pana
run: dart pub global activate pana

- name: Analyze project source with pana
run: pana
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Flutter Expandable Table

## [2.0.1] - 2023-09-04
#### [@rickypid](https://github.com/rickypid)
- Update flutter_scroll_shadow dependency, add GitHub Actions.

## [2.0.0] - 2023-06-01
#### [@rickypid](https://github.com/rickypid)
- Release 2.0.0, improved documentation and tests.
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ Here is an example:
* `duration`: determines duration rendered animation of Rows/Columns expansion.
* `curve`: determines rendered curve animation of Rows/Columns expansion.
* `scrollShadowDuration`: determines duration rendered animation of shadows.
* `scrollShadowCurve`: determines rendered curve animation of shadows.
* `scrollShadowFadeInCurve`: determines rendered curve animation of shadows appearance.
* `scrollShadowFadeOutCurve`: determines rendered curve animation of shadows disappearance.
* `scrollShadowColor`: determines rendered color of shadows.
* `scrollShadowSize`: determines size of shadows.
* `visibleScrollbar`: determines visibility of scrollbar.
Expand Down
3 changes: 2 additions & 1 deletion example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ Here is an example:
* `duration`: determines duration rendered animation of Rows/Columns expansion.
* `curve`: determines rendered curve animation of Rows/Columns expansion.
* `scrollShadowDuration`: determines duration rendered animation of shadows.
* `scrollShadowCurve`: determines rendered curve animation of shadows.
* `scrollShadowFadeInCurve`: determines rendered curve animation of shadows appearance.
* `scrollShadowFadeOutCurve`: determines rendered curve animation of shadows disappearance.
* `scrollShadowColor`: determines rendered color of shadows.
* `scrollShadowSize`: determines size of shadows.
* `visibleScrollbar`: determines visibility of scrollbar.
Expand Down
44 changes: 22 additions & 22 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ packages:
dependency: transitive
description:
name: collection
sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c"
sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
url: "https://pub.dev"
source: hosted
version: "1.17.1"
version: "1.17.2"
fake_async:
dependency: transitive
description:
Expand All @@ -68,7 +68,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.0.0-beta.3"
version: "2.0.1"
flutter_lints:
dependency: "direct dev"
description:
Expand All @@ -81,10 +81,10 @@ packages:
dependency: transitive
description:
name: flutter_scroll_shadow
sha256: "0e6e3c23ae81d892a2cc106156ff94c7b5c1cb1ec4c71608b4565a35aaed0d49"
sha256: a822a2ddd5dba4e76e8958b8d64e1a8436429a5236df93ce93f28d0968731aa4
url: "https://pub.dev"
source: hosted
version: "1.2.0"
version: "1.2.3"
flutter_test:
dependency: "direct dev"
description: flutter
Expand All @@ -98,14 +98,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.6.0"
js:
dependency: transitive
description:
name: js
sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
url: "https://pub.dev"
source: hosted
version: "0.6.7"
linked_scroll_controller:
dependency: transitive
description:
Expand All @@ -126,18 +118,18 @@ packages:
dependency: transitive
description:
name: matcher
sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb"
sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
url: "https://pub.dev"
source: hosted
version: "0.12.15"
version: "0.12.16"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724
sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
url: "https://pub.dev"
source: hosted
version: "0.2.0"
version: "0.5.0"
meta:
dependency: transitive
description:
Expand Down Expand Up @@ -179,10 +171,10 @@ packages:
dependency: transitive
description:
name: source_span
sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
url: "https://pub.dev"
source: hosted
version: "1.9.1"
version: "1.10.0"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -219,10 +211,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb
sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
url: "https://pub.dev"
source: hosted
version: "0.5.1"
version: "0.6.0"
tint:
dependency: transitive
description:
Expand All @@ -239,6 +231,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.4"
web:
dependency: transitive
description:
name: web
sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
url: "https://pub.dev"
source: hosted
version: "0.1.4-beta"
yaml:
dependency: transitive
description:
Expand All @@ -248,5 +248,5 @@ packages:
source: hosted
version: "3.1.1"
sdks:
dart: ">=3.0.0-0 <4.0.0"
dart: ">=3.1.0-185.0.dev <4.0.0"
flutter: ">=1.17.0"
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_expandable_table_example
description: A Flutter widget for create an expandable table with header and first column fixed.
version: 2.0.0
version: 2.0.1

environment:
sdk: ">=2.18.0 <4.0.0"
Expand Down
14 changes: 10 additions & 4 deletions lib/src/class/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,15 @@ class ExpandableTableController extends ChangeNotifier {
/// Default: [500ms]
final Duration scrollShadowDuration;

/// [scrollShadowCurve] determines rendered curve animation of shadows.
/// [scrollShadowFadeInCurve] determines rendered curve animation of shadows appearance.
///
/// Default: [Curves.fastOutSlowIn]
final Curve scrollShadowCurve;
/// Default: [Curves.easeIn]
final Curve scrollShadowFadeInCurve;

/// [scrollShadowFadeOutCurve] determines rendered curve animation of shadows disappearance.
///
/// Default: [Curves.easeOut]
final Curve scrollShadowFadeOutCurve;

/// [scrollShadowColor] determines rendered color of shadows.
///
Expand All @@ -145,7 +150,8 @@ class ExpandableTableController extends ChangeNotifier {
this.duration = const Duration(milliseconds: 500),
this.curve = Curves.fastOutSlowIn,
this.scrollShadowDuration = const Duration(milliseconds: 500),
this.scrollShadowCurve = Curves.fastOutSlowIn,
this.scrollShadowFadeInCurve = Curves.easeIn,
this.scrollShadowFadeOutCurve = Curves.easeOut,
this.scrollShadowColor = Colors.transparent,
this.scrollShadowSize = 10,
double headerHeight = 188,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/widget/table.dart
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class _ExpandableTableState extends State<ExpandableTable> {
duration: widget.duration,
curve: widget.curve,
scrollShadowDuration: widget.scrollShadowDuration,
scrollShadowCurve: widget.scrollShadowCurve,
scrollShadowFadeInCurve: widget.scrollShadowCurve,
scrollShadowColor: widget.scrollShadowColor,
scrollShadowSize: widget.scrollShadowSize,
firstColumnWidth: widget.firstColumnWidth,
Expand Down
18 changes: 8 additions & 10 deletions lib/src/widget_internal/table.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ class InternalTableState extends State<InternalTable> {
child: ScrollShadow(
size: data.scrollShadowSize,
color: data.scrollShadowColor,
curve: data.scrollShadowCurve,
fadeInCurve: data.scrollShadowFadeInCurve,
fadeOutCurve: data.scrollShadowFadeOutCurve,
duration: data.scrollShadowDuration,
controller: _firstColumnController,
child: Builder(
builder: (context) {
Widget child = ListView(
Expand Down Expand Up @@ -150,11 +150,10 @@ class InternalTableState extends State<InternalTable> {
Expanded(
child: ScrollShadow(
size: data.scrollShadowSize,
scrollDirection: Axis.horizontal,
color: data.scrollShadowColor,
curve: data.scrollShadowCurve,
fadeInCurve: data.scrollShadowFadeInCurve,
fadeOutCurve: data.scrollShadowFadeOutCurve,
duration: data.scrollShadowDuration,
controller: _bodyController,
child: SingleChildScrollView(
controller: _bodyController,
scrollDirection: Axis.horizontal,
Expand All @@ -166,9 +165,9 @@ class InternalTableState extends State<InternalTable> {
child: ScrollShadow(
size: data.scrollShadowSize,
color: data.scrollShadowColor,
curve: data.scrollShadowCurve,
fadeInCurve: data.scrollShadowFadeInCurve,
fadeOutCurve: data.scrollShadowFadeOutCurve,
duration: data.scrollShadowDuration,
controller: _restColumnsController,
child: Builder(
builder: (context) {
Widget child = ListView(
Expand Down Expand Up @@ -215,11 +214,10 @@ class InternalTableState extends State<InternalTable> {
Expanded(
child: ScrollShadow(
size: data.scrollShadowSize,
scrollDirection: Axis.horizontal,
color: data.scrollShadowColor,
curve: data.scrollShadowCurve,
fadeInCurve: data.scrollShadowFadeInCurve,
fadeOutCurve: data.scrollShadowFadeOutCurve,
duration: data.scrollShadowDuration,
controller: _headController,
child: Builder(
builder: (context) {
Widget child = ListView(
Expand Down
42 changes: 21 additions & 21 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ packages:
dependency: transitive
description:
name: collection
sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c"
sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
url: "https://pub.dev"
source: hosted
version: "1.17.1"
version: "1.17.2"
fake_async:
dependency: transitive
description:
Expand All @@ -74,10 +74,10 @@ packages:
dependency: "direct main"
description:
name: flutter_scroll_shadow
sha256: "0e6e3c23ae81d892a2cc106156ff94c7b5c1cb1ec4c71608b4565a35aaed0d49"
sha256: a822a2ddd5dba4e76e8958b8d64e1a8436429a5236df93ce93f28d0968731aa4
url: "https://pub.dev"
source: hosted
version: "1.2.0"
version: "1.2.3"
flutter_test:
dependency: "direct dev"
description: flutter
Expand All @@ -91,14 +91,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.6.0"
js:
dependency: transitive
description:
name: js
sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
url: "https://pub.dev"
source: hosted
version: "0.6.7"
linked_scroll_controller:
dependency: "direct main"
description:
Expand All @@ -119,18 +111,18 @@ packages:
dependency: transitive
description:
name: matcher
sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb"
sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
url: "https://pub.dev"
source: hosted
version: "0.12.15"
version: "0.12.16"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724
sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
url: "https://pub.dev"
source: hosted
version: "0.2.0"
version: "0.5.0"
meta:
dependency: transitive
description:
Expand Down Expand Up @@ -172,10 +164,10 @@ packages:
dependency: transitive
description:
name: source_span
sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
url: "https://pub.dev"
source: hosted
version: "1.9.1"
version: "1.10.0"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -212,10 +204,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb
sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
url: "https://pub.dev"
source: hosted
version: "0.5.1"
version: "0.6.0"
tint:
dependency: transitive
description:
Expand All @@ -232,6 +224,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.4"
web:
dependency: transitive
description:
name: web
sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
url: "https://pub.dev"
source: hosted
version: "0.1.4-beta"
yaml:
dependency: transitive
description:
Expand All @@ -241,5 +241,5 @@ packages:
source: hosted
version: "3.1.2"
sdks:
dart: ">=3.0.0-0 <4.0.0"
dart: ">=3.1.0-185.0.dev <4.0.0"
flutter: ">=1.17.0"
Loading

0 comments on commit a0012ee

Please sign in to comment.