Skip to content

Commit

Permalink
Commit from GitHub Actions (Samples Presubmit)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pante committed Mar 11, 2024
1 parent 84eac81 commit 5ca44d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 3 additions & 4 deletions samples/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Flutter imports:
import 'package:flutter/material.dart';

void main() {
Expand All @@ -9,8 +10,7 @@ class MyApp extends StatelessWidget {

// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
Widget build(BuildContext context) => MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
// This is the theme of your application.
Expand All @@ -33,11 +33,10 @@ class MyApp extends StatelessWidget {
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}

class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
const MyHomePage({required this.title, super.key});

// This widget is the home page of your application. It is stateful, meaning
// that it has a State object (defined below) that contains fields that affect
Expand Down
6 changes: 5 additions & 1 deletion samples/test/widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.

// Flutter imports:
import 'package:flutter/material.dart';

// Package imports:
import 'package:flutter_test/flutter_test.dart';

// Project imports:
import 'package:samples/main.dart';

void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
testWidgets('Counter increments smoke test', (tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(const MyApp());

Expand Down

0 comments on commit 5ca44d9

Please sign in to comment.