Skip to content

Commit

Permalink
Merge branch 'dev' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
TesteurManiak committed May 24, 2022
2 parents 7546c51 + 4d489d5 commit 30942bd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
10 changes: 5 additions & 5 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ void main() {
}

class MyApp extends StatelessWidget {
MyApp() {
MyApp({Key? key}) : super(key: key) {
Logger.root.level = Level.FINEST;
Logger.root.onRecord.listen((LogRecord rec) {
print(
debugPrint(
'[${rec.time}][${rec.level.name}][${rec.loggerName}] ${rec.message}',
);
});
Expand All @@ -29,7 +29,7 @@ class MyApp extends StatelessWidget {
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'Matomo Example'),
home: const MyHomePage(title: 'Matomo Example'),
);
}
}
Expand Down Expand Up @@ -68,7 +68,7 @@ class _MyHomePageState extends State<MyHomePage> with TraceableClientMixin {
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(
const Text(
'You have pushed the button this many times:',
),
Text(
Expand All @@ -81,7 +81,7 @@ class _MyHomePageState extends State<MyHomePage> with TraceableClientMixin {
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: Icon(Icons.add),
child: const Icon(Icons.add),
),
);
}
Expand Down
15 changes: 5 additions & 10 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,42 +21,37 @@ environment:
sdk: ">=2.12.0 <3.0.0"

dependencies:
flutter:
sdk: flutter
matomo_tracker:
path: ../


# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
flutter:
sdk: flutter
matomo_tracker:
path: ../

dev_dependencies:
flutter_lints: ^1.0.4
flutter_test:
sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true

# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg

# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.

# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages

# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
Expand Down

0 comments on commit 30942bd

Please sign in to comment.