Skip to content

Commit

Permalink
fix use_super_parameters issue
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhdang198 committed Jan 11, 2024
1 parent 0ae69c4 commit 12cff23
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/views/banner_instruction.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import '../models/route_progress_event.dart';

class BannerInstructionView extends StatelessWidget {
const BannerInstructionView({
Key? key,
super.key,
required this.routeProgressEvent,
required this.instructionIcon,
}) : super(key: key);
});

/// this widget use [RouteProgressEvent] to show the direction icon and instruction
final RouteProgressEvent? routeProgressEvent;
Expand Down
4 changes: 2 additions & 2 deletions lib/views/bottom_action.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import '../models/route_progress_event.dart';

class BottomActionView extends StatelessWidget {
const BottomActionView(
{Key? key,
{super.key,
this.controller,
this.routeProgressEvent,
required this.recenterButton,
this.onOverviewCallback,
this.onStopNavigationCallback}):super(key: key);
this.onStopNavigationCallback});

/// this widget use [MapNavigationViewController] to control the map (overview, finish navigation)
final MapNavigationViewController? controller;
Expand Down
5 changes: 2 additions & 3 deletions lib/views/navigation_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class NavigationView extends StatefulWidget {
/// it will response all events from the map and navigation
/// and return all information about the route
const NavigationView(
{Key? key,
{super.key,
required this.mapOptions,
required this.onMapCreated,
this.onRouteProgressChange,
Expand All @@ -36,8 +36,7 @@ class NavigationView extends StatefulWidget {
this.onMapRendered,
this.onMapLongClick,
this.onMapClick,
this.onNewRouteSelected})
: super(key: key);
this.onNewRouteSelected});

/// Setting navigation options for the map
final MapOptions mapOptions;
Expand Down

0 comments on commit 12cff23

Please sign in to comment.