Releases: slovnicki/beamer
Releases · slovnicki/beamer
Version 1.5.0
- Added:
onUpdate
method toBeamLocation
which is called afterinitState
and on everyupdate
. (#507, #88c8537). See this example that demonstrates its possible usage. - Added:
isEqualTo
extension method toRouteInformation
(intentionally not overriding the equality operator) - Fixed: Possible wrong URL after global rebuild with multiple child Beamers (#523)
- Fixed: Consistency of calls to
BeamLocation.updateState
(#484) - Fixed: Resetting
popConfiguration
afterpopToNamed
parameter has been used in abeamToNamed
call (#521)
Documentation
- Added explanation of some specific parameters at Nested Navigation section in README (#514)
Examples
- Improved books_blos example with usage of new
BeamLocation.onUpdate
Ecosystem
- Added a beam_location brick
- Various improvements on website (devj3ns)
Version 1.4.1+1
- Fixed: formatting of
beamer.dart
file
Version 1.4.1
CHANGELOG
- Fixed: Deeper routes matching with asterisk (cgaisl, #494, #502)
- Fixed: Nested navigation crash with guards (svsk417, #490)
- Fixed: Breaking out of
popToNamed
loop (Goddchen, #500)
Documentation
- Added website app; a starting point for extensive, self-explanatory Beamer documentation at beamer.dev
- Fixed typos and added doc comment for accessing root Beamer (gazialankus)
Version 1.4.0+1
CHANGELOG
Documentation
- Various README improvements and tweaks
Version 1.4.0
CHANGELOG
- Added: Relative beaming, i.e. being able to call
beamToNamed('path')
instead ofbeamToNamed('/my/path')
if we're already at/my
- Added: New
BeamPageType
s;slideRightTransition
,slideLeftTransition
andslideTopTransition
(Shiba-Kar, #477) - Improved: Interactions between nested and sibling Beamers by having children automatically take priority and more carefully handle locally not found cases
- Fixed: Unnecessary update of
ChangeNotifier
custom state (jmysliv, #475) - Fixed:: Target
BeamLocation
initialization duringbeamBack
- Fixed: Insufficiently detailed automatic
BeamPage.key
in someRoutesLocationBuilder.routes
usage of*
Examples
- Added a new example: multiple_beamers
- Improved and simplified bottom_navigation_multiple_beamers example
- Fixed updating Beamer in authentication_riverpod example
Version 1.3.0
CHANGELOG
- Added:
strictPathPatterns
toBeamLocation
which will do only exact matches of URI and path pattern (5810c9c) - Added:
updateListenable
toBeamerDelegate
which will triggerupdate
when it notifies (f0ccfd7) - Added: Support for replacing the browser history entry when using
beamToReplacement*
or specifyingreplaceRouteInformation: true
- Added: Support for setting
opaque
property onBeamPage
(ggirotto, #446) - Added:
initializeFromParent
property toBeamerDelegate
to overcome the limitation ofupdateFromParent
and give finer control over parent interaction (340b474) - Fixed: Browser back/forward buttons behavior, i.e. browser history
- Fixed: Initialization of target
BeamLocation
when beaming back (#463) - Updated: Return values for
beamBack
andpopBeamLocation
context extensions (marcguilera, #461, 1045ab3) - Updated: The entire guarding flow (thanks mat100payette for important feedback and contribution)
Examples
- Fixed some edge cases in advanced_books example (jpangburn, #451)
- Updated authentication_bloc example guard usage (df194e8)
Version 1.2.0
CHANGELOG
- Fixed: Using the
initialPath
instead of parent's path on nestedBeamerDelegate
during initialization from parent when theupdateFromParent
is set tofalse
(samdogg7)
Documentation:
- Added a section about Page Keys to README (Goddchen)
- Added a sentence about browser's back button to README
- Fixed and improved grammar in doc comments (ggirotto)
Examples:
- Fixed analyzer warnings (Goddchen)
- Updated authentication_bloc example to bloc v8 (Lorenzohidalgo)
Version 1.1.0
CHANGELOG
Most of this release is matuella's directly and indirectly contributions. Many thanks!
- Add: a link to Medium article for "Migrating" section in README
- Add: lint rules
prefer_single_quotes
,always_use_package_imports
,omit_local_variable_types
,prefer_final_locals
andcomment_references
. - Fix: disposing histories on
beamBack
(#417) - Fix: updating history when setting
state
manually (#420) - Deprecate: unused
BeamerDelegate.preferUpdate
- Improve: tests setup (Thanks cedvdb)
Version 1.0.0
CHANGELOG
- BREAKING: "top-level state", the one in
BeamerDelegate
is nowRouteInformation
instead ofBeamState
BeamerDelegate.state
doesn't exist anymore and is replaced withBeamerDelegate.configuration
which isRouteInformation
and notBeamState
locationBuilder
now works withRouteInformation
andBeamConfiguration
instead ofBeamState
super()
constructor onBeamLocation
now takes optionalRouteInformation
instead ofBeamState
- in order to continue using custom
BeamLocation
s withBeamState
state, generic type has to be specified;class MyBeamLocation extends BeamLocation<BeamState>
- BREAKING:
pathBlueprints
is renamed topathPatterns
BeamLocation.pathPatterns
isList<Pattern>
BeamState.pathBlueprintSegments
renamed toBeamState.pathPatternSegments
BeamGuard.pathBlueprints
renamed toBeamGuard.pathPatterns
- BREAKING:
SimpleLocationBuilder
is renamed toRoutesLocationBuilder
- also the
SimpleBeamLocation
is renamed toRoutesBeamLocation
routes
values now additionally receivedata
- also the
- BREAKING:
beamStateHistory
andbeamLocationHistory
have been replaced withbeamingHistory
that is aList<BeamLocation>
and eachBeamLocation
hashistory
that isList<HistoryElement>
whereHistoryElement
holdsRouteInformation
andBeamParameters
. - BREAKING:
BeamerDelegate.listener
has been renamed toBeamerDelegate.routeListener
- BREAKING: The property
pageRouteBuilder
inBeamPage
is replaced with a new propertyrouteBuilder
which works with anyRouteBuilder
not justPageRouteBuilder
. - BREAKING:
BeamGuard
beamTo
receives the origin and targetBeamLocation
s alongsideBuildContext
. - BREAKING:
BeamGuard
beamToNamed
is now a function that receives the origin and targetBeamLocation
s and returns aString
. - Add: guard_riverpod example
- Add: firebase_core example
- Add: firebase_auth example
- Add: change_notifier_custom_state example
- Add:
BeamerBackButtonDispatcher.alwaysBeamBack
to make Android back button always go to previous route, even if it canpop
. - Add:
BeamPage.routePop
that can be used foronPopPage
instead of defaultpathsegmentPop
- Add:
BeamerDelegate.buildListener
, which is called after the pages are built. - Add:
fullScreenDialog
property toBeamPage
- Add: flutter_lints
- Add: a presentation resource about beamer
- Fix: clearing history range when using
popToNamed
- Fix: passing
BeamPage.title
toCupertinoPageRoute
s
Version 0.14.1
CHANGELOG:
- Add:
updateParent
(defaulttrue
) toBeamerDelegate
- Fix: ignoring query on initial path