Skip to content

Commit

Permalink
style: apply modern constructor syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
OutdatedGuy committed Oct 11, 2024
1 parent ac8ba68 commit bfa7463
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions geocoding_darwin/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class BaseflowPluginExample extends StatelessWidget {
createMaterialColor(const Color.fromRGBO(48, 49, 60, 1));

/// Constructs the [BaseflowPluginExample] class
BaseflowPluginExample({Key? key}) : super(key: key);
BaseflowPluginExample({super.key});

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -89,7 +89,7 @@ class BaseflowPluginExample extends StatelessWidget {
/// A Flutter example demonstrating how the [pluginName] plugin could be used
class AppHome extends StatefulWidget {
/// Constructs the [AppHome] class
const AppHome({Key? key, required this.title}) : super(key: key);
const AppHome({super.key, required this.title});

/// The [title] of the application, which is shown in the application's
/// title bar.
Expand Down
2 changes: 1 addition & 1 deletion geocoding_darwin/example/lib/template/info_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'globals.dart';
/// [StatelessWidget] displaying information about Baseflow
class InfoPage extends StatelessWidget {
/// Constructs the [InfoPage] class
const InfoPage({Key? key}) : super(key: key);
const InfoPage({super.key});

@override
Widget build(BuildContext context) {
Expand Down

0 comments on commit bfa7463

Please sign in to comment.