Skip to content

Releases: slovnicki/beamer

Version 1.5.0

11 Jun 14:14
97cffe6
Compare
Choose a tag to compare
  • Added: onUpdate method to BeamLocation which is called after initState and on every update. (#507, #88c8537). See this example that demonstrates its possible usage.
  • Added: isEqualTo extension method to RouteInformation (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 after popToNamed parameter has been used in a beamToNamed call (#521)

Documentation

Examples

Ecosystem

Version 1.4.1+1

13 Apr 19:11
ea084ae
Compare
Choose a tag to compare
  • Fixed: formatting of beamer.dart file

Version 1.4.1

11 Apr 12:18
47ae17d
Compare
Choose a tag to compare

CHANGELOG

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

26 Feb 00:48
287e633
Compare
Choose a tag to compare

CHANGELOG

Documentation

  • Various README improvements and tweaks

Version 1.4.0

24 Feb 05:48
0462abf
Compare
Choose a tag to compare

CHANGELOG

  • Added: Relative beaming, i.e. being able to call beamToNamed('path') instead of beamToNamed('/my/path') if we're already at /my
  • Added: New BeamPageTypes; slideRightTransition, slideLeftTransition and slideTopTransition (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 during beamBack
  • Fixed: Insufficiently detailed automatic BeamPage.key in some RoutesLocationBuilder.routes usage of *

Examples

Version 1.3.0

06 Feb 16:59
75e05e9
Compare
Choose a tag to compare

CHANGELOG

  • Added: strictPathPatterns to BeamLocation which will do only exact matches of URI and path pattern (5810c9c)
  • Added: updateListenable to BeamerDelegate which will trigger update when it notifies (f0ccfd7)
  • Added: Support for replacing the browser history entry when using beamToReplacement* or specifying replaceRouteInformation: true
  • Added: Support for setting opaque property on BeamPage (ggirotto, #446)
  • Added: initializeFromParent property to BeamerDelegate to overcome the limitation of updateFromParent 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 and popBeamLocation context extensions (marcguilera, #461, 1045ab3)
  • Updated: The entire guarding flow (thanks mat100payette for important feedback and contribution)

Examples

Version 1.2.0

05 Jan 18:16
9ac04d9
Compare
Choose a tag to compare

CHANGELOG

  • Fixed: Using the initialPath instead of parent's path on nested BeamerDelegate during initialization from parent when the updateFromParent is set to false (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:

Version 1.1.0

18 Dec 10:30
44b245a
Compare
Choose a tag to compare

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 and comment_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

03 Dec 09:37
29bcae4
Compare
Choose a tag to compare

CHANGELOG

  • BREAKING: "top-level state", the one in BeamerDelegate is now RouteInformation instead of BeamState
    • BeamerDelegate.state doesn't exist anymore and is replaced with BeamerDelegate.configuration which is RouteInformation and not BeamState
    • locationBuilder now works with RouteInformation and BeamConfiguration instead of BeamState
    • super() constructor on BeamLocation now takes optional RouteInformation instead of BeamState
    • in order to continue using custom BeamLocations with BeamState state, generic type has to be specified; class MyBeamLocation extends BeamLocation<BeamState>
  • BREAKING: pathBlueprints is renamed to pathPatterns
    • BeamLocation.pathPatterns is List<Pattern>
    • BeamState.pathBlueprintSegments renamed to BeamState.pathPatternSegments
    • BeamGuard.pathBlueprints renamed to BeamGuard.pathPatterns
  • BREAKING: SimpleLocationBuilder is renamed to RoutesLocationBuilder
    • also the SimpleBeamLocation is renamed to RoutesBeamLocation
    • routes values now additionally receive data
  • BREAKING: beamStateHistory and beamLocationHistory have been replaced with beamingHistory that is a List<BeamLocation> and each BeamLocation has history that is List<HistoryElement> where HistoryElement holds RouteInformation and BeamParameters.
  • BREAKING: BeamerDelegate.listener has been renamed to BeamerDelegate.routeListener
  • BREAKING: The property pageRouteBuilder in BeamPage is replaced with a new property routeBuilder which works with any RouteBuilder not just PageRouteBuilder.
  • BREAKING: BeamGuard beamTo receives the origin and target BeamLocations alongside BuildContext.
  • BREAKING: BeamGuard beamToNamed is now a function that receives the origin and target BeamLocations and returns a String.
  • 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 can pop.
  • Add: BeamPage.routePop that can be used for onPopPage instead of default pathsegmentPop
  • Add: BeamerDelegate.buildListener, which is called after the pages are built.
  • Add: fullScreenDialog property to BeamPage
  • Add: flutter_lints
  • Add: a presentation resource about beamer
  • Fix: clearing history range when using popToNamed
  • Fix: passing BeamPage.title to CupertinoPageRoutes

Version 0.14.1

21 Jun 22:11
365aa06
Compare
Choose a tag to compare

CHANGELOG:

  • Add: updateParent (default true) to BeamerDelegate
  • Fix: ignoring query on initial path