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

1.5.1 & Update actions #280

Merged
merged 27 commits into from
Jul 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
6e3aa4c
Sidebar top (#244)
GroovinChip May 11, 2022
41c56a2
chore: update issue templates
GroovinChip May 11, 2022
de258e5
chore: update pr_prelaunch script
GroovinChip May 11, 2022
4bb29a8
Merge branch 'stable' into dev
GroovinChip May 11, 2022
e4c37d6
Flutter 3 upgrade & MacosColor update (#248)
GroovinChip May 13, 2022
ac6870c
Merge branch 'stable' into dev
GroovinChip May 13, 2022
ab47743
Starter app (#251)
GroovinChip May 13, 2022
880c308
Full screen opaque toolbar issue (closes #249) (#252)
whiplashoo May 16, 2022
eb06cc4
Merge branch 'stable' into dev
GroovinChip May 16, 2022
77778ed
Version 1.4.1 (#255)
GroovinChip May 16, 2022
ee2297f
Merge branch 'stable' into dev
GroovinChip May 16, 2022
ba99684
Merge branch 'stable' into dev
GroovinChip May 16, 2022
3f0d09e
chore: repository, homepage fields
GroovinChip May 16, 2022
3f6d9ac
Merge branch 'stable' into dev
GroovinChip May 16, 2022
1857b58
chore: update readme
GroovinChip May 16, 2022
1dbab59
feat(starter_app): Version 1.1.0
GroovinChip May 16, 2022
99cce50
feat(starter_app): multi-window support
GroovinChip May 17, 2022
a7b34dd
feat: starter_app 1.2.1
GroovinChip May 21, 2022
f6cb9cd
chore: move brick to its own repo & go back to old pana action
GroovinChip May 23, 2022
a4e85c3
Expand remaining part of row in MacosListTile (#265)
jonsaw Jun 24, 2022
6d89861
End sidebar (#267)
GroovinChip Jun 26, 2022
9b8f75d
Merge branch 'stable' into dev
GroovinChip Jun 30, 2022
098c22f
fix: Correct the placement of the leading widget in disclosure sideba…
GroovinChip Jul 1, 2022
c7719c2
chore: Update changelog
GroovinChip Jul 2, 2022
5687498
test: fix issues with date_picker_test
GroovinChip Jul 7, 2022
f09843c
Update Actions (#279)
GroovinChip Jul 7, 2022
cb4b726
Merge branch 'stable' into update_stable
GroovinChip Jul 7, 2022
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
6 changes: 3 additions & 3 deletions .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@master
- uses: subosito/flutter-action@v1
- uses: subosito/flutter-action@v2
with:
channel: stable
- name: Get flutter packages
Expand All @@ -24,7 +24,7 @@ jobs:
- name: Upload coverage to Codecov
run: curl -s https://codecov.io/bash
shell: bash
- uses: codecov/codecov-action@v2
- uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage/lcov.info
files: ./coverage/lcov.info
20 changes: 9 additions & 11 deletions .github/workflows/dart_code_metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install Flutter
uses: subosito/flutter-action@master
with:
channel: stable
- uses: actions/checkout@v3

- name: Check directory
run: ls
- name: Install Code Metrics
run: flutter pub global activate dart_code_metrics
- name: Run Code Metrics
run: flutter pub global run dart_code_metrics:metrics --reporter=github lib
- name: Run Dart Code Metrics
uses: dart-code-checker/dart-code-metrics-action@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
pull_request_comment: true
fatal_warnings: true
fatal_performance: true
fatal_style: true
14 changes: 7 additions & 7 deletions .github/workflows/flutter_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install Flutter
uses: subosito/flutter-action@master
uses: subosito/flutter-action@v2
with:
channel: stable

- name: install dependencies
- name: Install dependencies
run: flutter pub get

- name: format code
- name: Format code
run: flutter format --set-exit-if-changed .

- name: analyze code
run: flutter analyze .
- name: Analyze code
run: flutter analyze --fatal-infos .

- name: test code
- name: Test code
run: flutter test

6 changes: 3 additions & 3 deletions .github/workflows/gh_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: stable
- name: Install Dependencies
Expand All @@ -33,4 +33,4 @@ jobs:
git checkout -b gh-pages
git add .
git commit -m "update"
git push --force secure-origin gh-pages
git push --force secure-origin gh-pages
4 changes: 2 additions & 2 deletions .github/workflows/pana_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: axel-op/dart-package-analyzer@v3
# set an id for the current step
Expand All @@ -33,4 +33,4 @@ jobs:
env:
JSON_OUTPUT: ${{ steps.analysis.outputs.json_output }}
run: |
TOTAL_SCORE=$(jq -r '.scores.grantedPoints' <<< "$JSON_OUTPUT")
TOTAL_SCORE=$(jq -r '.scores.grantedPoints' <<< "$JSON_OUTPUT")
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [1.5.1]
* Correct the placement of the leading widget in disclosure sidebar items [#268](https://github.com/GroovinChip/macos_ui/issues/268)
* Improve the sizing of the disclosure item indicator

## [1.5.0]
* Adds `endSidebar` to `MacosWindow`

Expand Down
1 change: 1 addition & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ class _WidgetGalleryState extends State<WidgetGallery> {
label: Text('Fields'),
),
SidebarItem(
leading: Icon(CupertinoIcons.folder),
label: Text('Disclosure'),
disclosureItems: [
SidebarItem(
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.5.0"
version: "1.5.1"
matcher:
dependency: transitive
description:
Expand Down
11 changes: 6 additions & 5 deletions lib/src/layout/sidebar/sidebar_items.dart
Original file line number Diff line number Diff line change
Expand Up @@ -338,20 +338,21 @@ class __DisclosureSidebarItemState extends State<_DisclosureSidebarItem>
label: widget.item.label,
leading: Row(
children: [
if (widget.item.leading != null)
Padding(
padding: EdgeInsets.only(right: spacing),
child: widget.item.leading!,
),
RotationTransition(
turns: _iconTurns,
child: Icon(
CupertinoIcons.chevron_right,
size: 12.0,
color: theme.brightness == Brightness.light
? MacosColors.black
: MacosColors.white,
),
),
if (widget.item.leading != null)
Padding(
padding: EdgeInsets.only(left: spacing),
child: widget.item.leading!,
),
],
),
unselectedColor: MacosColors.transparent,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: macos_ui
description: Flutter widgets and themes implementing the current macOS design language.
version: 1.5.0
version: 1.5.1
homepage: "https://macosui.dev"
repository: "https://github.com/GroovinChip/macos_ui"

Expand Down
21 changes: 7 additions & 14 deletions test/selectors/date_picker_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,14 @@ void main() {
);

expect(find.text('/'), findsNWidgets(2));
expect(find.text('${today.day}'), findsOneWidget);
expect(find.text('${today.month}'), findsOneWidget);
expect(find.text('${today.year}'), findsOneWidget);
if (today.month == today.day) {
expect(find.text('${today.day}'), findsNWidgets(2));
expect(find.text('${today.month}'), findsNWidgets(2));
} else {
expect(find.text('${today.day}'), findsOneWidget);
expect(find.text('${today.month}'), findsOneWidget);
}
},
);

Expand Down Expand Up @@ -71,14 +76,10 @@ void main() {
await tester.pumpAndSettle();
day++;
expect(day, today.day + 1);
await tester.tap(dayFieldElement);
await tester.pumpAndSettle();
await tester.tap(downCaretControl);
await tester.pumpAndSettle();
day--;
expect(day, today.day);
await tester.tap(dayFieldElement);
await tester.pumpAndSettle();
await tester.tap(downCaretControl);
await tester.pumpAndSettle();
day--;
Expand Down Expand Up @@ -120,14 +121,10 @@ void main() {
await tester.pumpAndSettle();
month++;
expect(month, today.month + 1);
await tester.tap(monthFieldElement);
await tester.pumpAndSettle();
await tester.tap(downCaretControl);
await tester.pumpAndSettle();
month--;
expect(month, today.month);
await tester.tap(monthFieldElement);
await tester.pumpAndSettle();
await tester.tap(downCaretControl);
await tester.pumpAndSettle();
month--;
Expand Down Expand Up @@ -169,14 +166,10 @@ void main() {
await tester.pumpAndSettle();
year++;
expect(year, today.year + 1);
await tester.tap(yearFieldElement);
await tester.pumpAndSettle();
await tester.tap(downCaretControl);
await tester.pumpAndSettle();
year--;
expect(year, today.year);
await tester.tap(yearFieldElement);
await tester.pumpAndSettle();
await tester.tap(downCaretControl);
await tester.pumpAndSettle();
year--;
Expand Down