Skip to content

Commit ef629ba

Browse files
committed
Lint cleanup
1 parent 19c2a11 commit ef629ba

6 files changed

Lines changed: 42 additions & 13 deletions

File tree

example/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Demonstration of VersionWidget()
1+
# Demonstration of VersionWidget()
22

33
The VersionWidget() is demonstrated comparing version number against a
44
number of github repositories, and reporting if the version number
@@ -7,6 +7,6 @@ CHANGELOG or is out of date.
77

88
Simply build and run the example app:
99

10-
```
10+
```shell
1111
flutter run
1212
```

example/lib/main.dart

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,40 @@
1+
/// A demonstration of the VersionWidget app.
2+
///
3+
// Time-stamp: <Sunday 2025-09-28 05:56:57 +1000 Graham Williams>
4+
///
5+
/// Copyright (C) 2025, Software Innovation Institute ANU
6+
///
7+
/// Licensed under the MIT License (the "License").
8+
///
9+
/// License: https://choosealicense.com/licenses/mit/.
10+
//
11+
// Permission is hereby granted, free of charge, to any person obtaining a copy
12+
// of this software and associated documentation files (the "Software"), to deal
13+
// in the Software without restriction, including without limitation the rights
14+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15+
// copies of the Software, and to permit persons to whom the Software is
16+
// furnished to do so, subject to the following conditions:
17+
//
18+
// The above copyright notice and this permission notice shall be included in
19+
// all copies or substantial portions of the Software.
20+
//
21+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27+
// SOFTWARE.
28+
///
29+
/// Authors: Kevin Wang, Graham Williams
30+
31+
// Add the library directive as we have doc entries above. We publish the above
32+
// meta doc lines in the docs.
33+
34+
library;
35+
136
import 'package:flutter/material.dart';
37+
238
import 'package:version_widget/version_widget.dart';
339

440
void main() {

example/pubspec.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ dependencies:
1414
path: ..
1515

1616
dev_dependencies:
17-
flutter_test:
18-
sdk: flutter
19-
2017
flutter_lints: ^5.0.0
2118

2219
flutter:

lib/src/widgets/version_widget.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// Version widget for the app.
22
///
3-
// Time-stamp: <Sunday 2025-09-28 05:43:55 +1000 Graham Williams>
3+
// Time-stamp: <Sunday 2025-09-28 05:48:17 +1000 Graham Williams>
44
///
55
/// Copyright (C) 2024-2025, Software Innovation Institute, ANU.
66
///
@@ -281,7 +281,7 @@ class _VersionWidgetState extends State<VersionWidget> {
281281
final tooltipMessage = '''
282282
283283
**Version:** $_currentVersion. According to the CHANGELOG from the app
284-
repository ${_isLatest ? widget.isLatestTooltip ?? defaultLatestTooltip : widget.notLatestTooltip ?? defaultNotLatestTooltip}**Tap** on the
284+
repository ${_isLatest ? widget.isLatestTooltip ?? defaultLatestTooltip : widget.notLatestTooltip ?? defaultNotLatestTooltip} **Tap** on the
285285
**Version** string to visit the app's CHANGELOG file in your browser.
286286
287287
''';

lib/version_widget.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// Version widget for apps.
22
///
3-
// Time-stamp: <Saturday 2025-09-27 15:55:00 +1000 Graham Williams>
3+
// Time-stamp: <Sunday 2025-09-28 05:45:55 +1000 Graham Williams>
44
///
55
/// Copyright (C) 2024-2025, Software Innovation Institute, ANU.
66
///
@@ -28,4 +28,4 @@
2828
2929
library;
3030

31-
export 'src/widgets/version_widget.dart.~2~' show VersionWidget;
31+
export 'src/widgets/version_widget.dart' show VersionWidget;

pubspec.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ dependencies:
1616
url_launcher: ^6.1.14
1717

1818
dev_dependencies:
19-
example:
20-
path: example
2119
flutter_lints: ^2.0.0
22-
flutter_test:
23-
sdk: flutter
2420

2521
flutter:
2622
uses-material-design: true

0 commit comments

Comments
 (0)