Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix code integrery #122

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions .github/workflows/coverage.yml

This file was deleted.

26 changes: 13 additions & 13 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Tests
on:
pull_request:
branches:
- master
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Install Flutter Dependencies
run: flutter pub get
- name: Run Flutter Tests
run: flutter test
name: Tests
on:
pull_request:
branches:
- master
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Install Flutter Dependencies
run: flutter pub get
- name: Run Flutter Tests
run: flutter test
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"dart.lineLength": 80,
}
"files.eol": "auto",
"prettier.endOfLine": "auto"
}
176 changes: 88 additions & 88 deletions demo/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,88 +1,88 @@
name: demo
description: PlutoGrid demo app.
# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1
environment:
sdk: ^3.0.0
dependency_overrides:
pluto_grid_plus:
path: ../
dependencies:
flutter:
sdk: flutter
pluto_grid_plus: 8.4.3
faker: ^2.1.0
url_launcher: ^6.2.1
font_awesome_flutter: ^10.6.0
rainbow_color: ^2.0.1
pluto_menu_bar: ^3.0.1
file_saver: ^0.2.10
pluto_grid_plus_export: 1.0.5
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.6
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^5.0.0
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/images/
fonts:
- family: OpenSans
fonts:
- asset: assets/fonts/open_sans/OpenSans-ExtraBold.ttf
weight: 800
- asset: assets/fonts/open_sans/OpenSans-ExtraBoldItalic.ttf
weight: 800
style: italic
- asset: assets/fonts/open_sans/OpenSans-Bold.ttf
weight: 700
- asset: assets/fonts/open_sans/OpenSans-BoldItalic.ttf
weight: 700
style: italic
- asset: assets/fonts/open_sans/OpenSans-SemiBold.ttf
weight: 600
- asset: assets/fonts/open_sans/OpenSans-SemiBoldItalic.ttf
weight: 600
style: italic
- asset: assets/fonts/open_sans/OpenSans-Regular.ttf
weight: 400
- asset: assets/fonts/open_sans/OpenSans-Italic.ttf
weight: 400
style: italic
- asset: assets/fonts/open_sans/OpenSans-Light.ttf
weight: 300
- asset: assets/fonts/open_sans/OpenSans-LightItalic.ttf
weight: 300
style: italic
name: demo
description: PlutoGrid demo app.

# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1

environment:
sdk: ^3.0.0

dependency_overrides:
pluto_grid_plus:
path: ../

dependencies:
flutter:
sdk: flutter
pluto_grid_plus: 8.4.3
faker: ^2.1.0
url_launcher: ^6.2.1
font_awesome_flutter: ^10.6.0
rainbow_color: ^2.0.1
pluto_menu_bar: ^3.0.1
file_saver: ^0.2.10
pluto_grid_plus_export: 1.0.5
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.6

dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^5.0.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true

# To add assets to your application, add an assets section, like this:
assets:
- assets/images/

fonts:
- family: OpenSans
fonts:
- asset: assets/fonts/open_sans/OpenSans-ExtraBold.ttf
weight: 800
- asset: assets/fonts/open_sans/OpenSans-ExtraBoldItalic.ttf
weight: 800
style: italic
- asset: assets/fonts/open_sans/OpenSans-Bold.ttf
weight: 700
- asset: assets/fonts/open_sans/OpenSans-BoldItalic.ttf
weight: 700
style: italic
- asset: assets/fonts/open_sans/OpenSans-SemiBold.ttf
weight: 600
- asset: assets/fonts/open_sans/OpenSans-SemiBoldItalic.ttf
weight: 600
style: italic
- asset: assets/fonts/open_sans/OpenSans-Regular.ttf
weight: 400
- asset: assets/fonts/open_sans/OpenSans-Italic.ttf
weight: 400
style: italic
- asset: assets/fonts/open_sans/OpenSans-Light.ttf
weight: 300
- asset: assets/fonts/open_sans/OpenSans-LightItalic.ttf
weight: 300
style: italic
45 changes: 22 additions & 23 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -170,29 +170,28 @@ class _PlutoGridExamplePageState extends State<PlutoGridExamplePage> {
body: Container(
padding: const EdgeInsets.all(15),
child: PlutoGrid(
columns: columns,
rows: rows,
columnGroups: columnGroups,
onLoaded: (PlutoGridOnLoadedEvent event) {
stateManager = event.stateManager;
stateManager.setShowColumnFilter(true);
},
onChanged: (PlutoGridOnChangedEvent event) {
print(event);
},
configuration: const PlutoGridConfiguration(),
selectDateCallback: (PlutoCell cell, PlutoColumn column) async {
return showDatePicker(
context: context,
initialDate: PlutoDateTimeHelper.parseOrNullWithFormat(
cell.value,
column.type.date.format,
) ?? DateTime.now(),
firstDate: column.type.date.startDate ?? DateTime(0),
lastDate: column.type.date.endDate ?? DateTime(9999)
);
}
),
columns: columns,
rows: rows,
columnGroups: columnGroups,
onLoaded: (PlutoGridOnLoadedEvent event) {
stateManager = event.stateManager;
stateManager.setShowColumnFilter(true);
},
onChanged: (PlutoGridOnChangedEvent event) {
print(event);
},
configuration: const PlutoGridConfiguration(),
selectDateCallback: (PlutoCell cell, PlutoColumn column) async {
return showDatePicker(
context: context,
initialDate: PlutoDateTimeHelper.parseOrNullWithFormat(
cell.value,
column.type.date.format,
) ??
DateTime.now(),
firstDate: column.type.date.startDate ?? DateTime(0),
lastDate: column.type.date.endDate ?? DateTime(9999));
}),
),
);
}
Expand Down
Loading
Loading