Skip to content

Commit

Permalink
Merge pull request #42 from jb3rndt/rework_interface
Browse files Browse the repository at this point in the history
Rework the interface of `PersistentTabView`
  • Loading branch information
jb3rndt committed Mar 13, 2024
2 parents 47e46cf + e8b19e1 commit 91c2517
Show file tree
Hide file tree
Showing 122 changed files with 6,777 additions and 8,966 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,17 @@
name: Publish
name: Release
on:
push:
tags:
- "v*"

jobs:
test:
name: Test and format
uses: jb3rndt/PersistentBottomNavBarV2/.github/workflows/tests.yaml@master

release:
name: "Release"
runs-on: "ubuntu-latest"
needs: test

steps:
- name: Create tagged Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false

- name: Publish package to pub.dev
uses: sakebook/actions-flutter-pub-publisher@v1.4.0
with:
credential: ${{ secrets.PUB_CREDENTIALS }}
flutter_package: true
skip_test: true
dry_run: true
10 changes: 5 additions & 5 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_call:

env:
FLUTTER_VERSION: "2.10.5"
FLUTTER_VERSION: "3.19.3"

jobs:
tests:
Expand Down Expand Up @@ -66,10 +66,10 @@ jobs:
# Checkout and get packages.
- name: Checkout
uses: actions/checkout@v2
- run: flutter pub get
- run: dart pub get

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

analyze:
name: Analyze
Expand All @@ -91,7 +91,7 @@ jobs:
# Checkout and get packages.
- name: Checkout
uses: actions/checkout@v2
- run: flutter pub get
- run: dart pub get

- name: Analyze
run: flutter analyze
run: dart analyze
3 changes: 2 additions & 1 deletion .pubignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ build
example/android
example/build
example/ios
gifs
test
release.*
gifs
83 changes: 82 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,82 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [5.0.0-beta.10] - 2024-03-13
### Changed
- Rename ItemConfig color attributes

### Fixed
- Make PersistentTabConfig.noScreen onPressed mandatory

## [5.0.0-beta.9] - 2024-03-04
## [5.0.0-beta.8] - 2024-01-15
### Fixed
- Make ItemConfig inactiveIcon of Type Widget

## [5.0.0-beta.7] - 2023-12-06
### Fixed
- Upgrade go\_router to 12.1.1
- Make page switching transition rtl compatible
- Fix \_animation not initialized error
- Switching tabs without stateManagement caused re-initializations of all loaded pages

## [5.0.0-beta.6] - 2023-09-12
### Added
- Add `animatedTabBuilder` to customize the transition when switching tabs
- Support for Router API

### Fixed
- Tab slide animation no longer shows intermediate tabs in the slide animation when switching to non adjacent tabs

## [4.2.8] - 2023-03-27
### Fixed
- Remove label padding in simple style
- Check if context is non-null before popping all screens

## [5.0.0-beta.5] - 2023-02-27
### Added
- Tab history when using android back button

### Fixed
- ScreenTransitionAnimation with Duration.zero was throwing an error in the animation phase

### Removed
- Remove unused attribute `_animateTabTransition` on `ScreenTransitionAnimation`

## [5.0.0-beta.4] - 2023-02-12
### Added
- Support `drawerEdgeDragWidth`

## [5.0.0-beta.3] - 2023-02-12
### Added
- A drawer can be passed to the PersistentTabView to be usable in every tab

### Changed
- Renamed ItemAnimationProperties to ItemAnimation
- Made ScreenTransitionAnimation.animateTabTransition private
- Improved Example

## [5.0.0-beta.2] - 2022-11-28
### Fixed
- Migration Guide Link in the Readme

## [5.0.0-beta.1] - 2022-11-19
### Breaking Changes
- `itemAnimationProperties`, `neumorphicProperties` and `navBarDecoration` now have to be applied to the NavBar Widget directly
- navBarStyle now is a widget builder which also allows to pass a custom Widget instead of only the predefined ones
- Remove `PersistenTabView.custom` (use `PersistentTabView` instead) constructor
- Make items primary color the title and icon color and secondary the background color
- `backgroundColor` now changes the color of the background
- `NavBarOverlap` replaces the `buttomScreenMargin`

### Changed
- Remove PersistentTabViewBase
- Replace `CupertinoPageScaffold` with `Scaffold`
- Trimmed the styles
- Make inactiveIcon default to icon globally
- Tabs Navigators inherit the settings of the root Navigator
- Make null-safety safer

## [4.2.7] - 2022-11-13
### Fixed
- Scroll to top on iOS (#34 via #72)
Expand Down Expand Up @@ -451,7 +522,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Includes platform specific behavior as an option (specify it in the two navigator functions).
- Based on flutter's Cupertino(iOS) bottom navigation bar.

[5.0.0-beta.10]: https://github.com/jb3rndt/PersistentBottomNavBarV2/compare/5.0.0-beta.9...5.0.0-beta.10
[5.0.0-beta.9]: https://github.com/jb3rndt/PersistentBottomNavBarV2/compare/5.0.0-beta.8...5.0.0-beta.9
[5.0.0-beta.8]: https://github.com/jb3rndt/PersistentBottomNavBarV2/compare/5.0.0-beta.7...5.0.0-beta.8
[5.0.0-beta.7]: https://github.com/jb3rndt/PersistentBottomNavBarV2/compare/5.0.0-beta.6...5.0.0-beta.7
[5.0.0-beta.6]: https://github.com/jb3rndt/PersistentBottomNavBarV2/compare/5.0.0-beta.5...5.0.0-beta.6
[4.2.8]: https://github.com/jb3rndt/PersistentBottomNavBarV2/compare/4.2.7...4.2.8
[5.0.0-beta.5]: https://github.com/jb3rndt/PersistentBottomNavBarV2/compare/5.0.0-beta.4...5.0.0-beta.5
[5.0.0-beta.4]: https://github.com/jb3rndt/PersistentBottomNavBarV2/compare/5.0.0-beta.3...5.0.0-beta.4
[5.0.0-beta.3]: https://github.com/jb3rndt/PersistentBottomNavBarV2/compare/5.0.0-beta.2...5.0.0-beta.3
[5.0.0-beta.2]: https://github.com/jb3rndt/PersistentBottomNavBarV2/compare/4.2.7...5.0.0-beta.2
[5.0.0-beta.1]: https://github.com/jb3rndt/PersistentBottomNavBarV2/compare/4.2.7...5.0.0-beta.1
[4.2.7]: https://github.com/jb3rndt/PersistentBottomNavBarV2/compare/4.2.6...4.2.7
[4.2.6]: https://github.com/jb3rndt/PersistentBottomNavBarV2/compare/4.2.5...4.2.6
[4.2.5]: https://github.com/jb3rndt/PersistentBottomNavBarV2/compare/4.2.4...4.2.5
Expand Down Expand Up @@ -538,4 +619,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[0.0.4]: https://github.com/BilalShahid13/PersistentBottomNavBar
[0.0.3]: https://github.com/BilalShahid13/PersistentBottomNavBar
[0.0.2]: https://github.com/BilalShahid13/PersistentBottomNavBar
[0.0.1]: https://github.com/BilalShahid13/PersistentBottomNavBar
[0.0.1]: https://github.com/BilalShahid13/PersistentBottomNavBar
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2022 Jannis Berndt
Copyright 2024 Jannis Berndt

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Expand Down
Loading

0 comments on commit 91c2517

Please sign in to comment.