Skip to content

Commit

Permalink
[espresso] Minor cleanup (flutter#3901)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartmorgan authored May 18, 2021
1 parent e25698f commit 0f95a81
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
5 changes: 5 additions & 0 deletions packages/espresso/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.1.0+1

* Minor code cleanup
* Package metadata updates

## 0.1.0

* Update SDK requirement for null-safety compatibility.
Expand Down
1 change: 0 additions & 1 deletion packages/espresso/analysis_options.yaml

This file was deleted.

8 changes: 4 additions & 4 deletions packages/espresso/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ class MyApp extends StatelessWidget {
// is not restarted.
primarySwatch: Colors.blue,
),
home: _MyHomePage(title: 'Flutter Demo Home Page'),
home: const _MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}

class _MyHomePage extends StatefulWidget {
_MyHomePage({Key? key, required this.title}) : super(key: key);
const _MyHomePage({Key? key, required this.title}) : super(key: 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 Expand Up @@ -98,15 +98,15 @@ class _MyHomePageState extends State<_MyHomePage> {
children: <Widget>[
Text(
'Button tapped $_counter time${_counter == 1 ? '' : 's'}.',
key: ValueKey('CountText'),
key: const ValueKey<String>('CountText'),
),
],
),
),
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: Icon(Icons.add),
child: const Icon(Icons.add),
), // This trailing comma makes auto-formatting nicer for build methods.
);
}
Expand Down
3 changes: 1 addition & 2 deletions packages/espresso/example/test_driver/example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter_driver/driver_extension.dart';

import 'package:espresso_example/main.dart' as app;
import 'package:flutter_driver/driver_extension.dart';

void main() {
enableFlutterDriverExtension();
Expand Down
5 changes: 3 additions & 2 deletions packages/espresso/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: espresso
description: Java classes for testing Flutter apps using Espresso.
version: 0.1.0
homepage: https://github.com/flutter/plugins/espresso
version: 0.1.0+1
repository: https://github.com/flutter/plugins/tree/master/packages
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+espresso+label%3A%22p%3A+espresso%22

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down

0 comments on commit 0f95a81

Please sign in to comment.