Skip to content

Commit

Permalink
Tweak documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Gilder authored and Tom Gilder committed May 17, 2021
1 parent 02bdb6b commit acfb95e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions lib/routemaster.dart
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ class RedirectLoopError extends Error {
/// A list of paths in the redirect loop.
final List<String> redirects;

/// Initializes an error that the router gets in in an endless redirect loop.
/// Initializes an error that the router is in an endless redirect loop.
RedirectLoopError(this.redirects);

@override
Expand Down Expand Up @@ -932,7 +932,7 @@ class _RouteRequest {
/// This widget listens to that stack, and updates the navigator when the pages
/// change.
class PageStackNavigator extends StatefulWidget {
/// The stack to show in the [Navigator].
/// The stack of pages to show in the [Navigator].
final PageStack stack;

/// A delegate that decides how pages are animated when they're added or
Expand Down Expand Up @@ -1060,7 +1060,9 @@ class PageStackNavigatorState extends State<PageStackNavigator> {
}

/// A subclass of [Navigator] that attaches itself to a [PageStack], so that
/// the stack can use [Navigator.maybePop] .
/// the stack can use [Navigator.maybePop].
///
/// This is to support popping non-[Page] routes.
class _StackNavigator extends Navigator {
final PageStack stack;

Expand Down
3 changes: 2 additions & 1 deletion lib/src/parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import 'route_data.dart';

/// A delegate that is used by the [Router] widget to parse URLs.
///
/// This must be supplied to top-level app object for Routemaster to work.
/// This must be supplied to the top-level [App] or [MaterialApp] for
/// Routemaster to work.
class RoutemasterParser extends RouteInformationParser<RouteData> {
/// Initializes a parser that works in conjunction with [RoutemasterDelegate].
const RoutemasterParser();
Expand Down

0 comments on commit acfb95e

Please sign in to comment.