Skip to content

Commit 169d02c

Browse files
authored
Merge pull request #16 from ValeteTech/master
Added support to null safety. Fixes #13.
2 parents 2e00642 + ad1750c commit 169d02c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class _MyAppState extends State<MyApp> {
2424
crossAxisAlignment: CrossAxisAlignment.center,
2525
children: <Widget>[
2626
Text('Secure Mode: ${_secureMode.toString()}\n'),
27-
RaisedButton(
27+
ElevatedButton(
2828
onPressed: () async {
2929
final secureModeToggle = !_secureMode;
3030

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repository: https://github.com/adaptant-labs/flutter_windowmanager
66
issue_tracker: https://github.com/adaptant-labs/flutter_windowmanager/issues
77

88
environment:
9-
sdk: ">=2.1.0 <3.0.0"
9+
sdk: ">=2.12.0 <3.0.0"
1010
# Flutter versions prior to 1.10 did not support
1111
# the flutter.plugin.platforms map.
1212
flutter: ">=1.10.0"

test/flutter_windowmanager_test.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ import 'package:flutter_test/flutter_test.dart';
33
import 'package:flutter_windowmanager/flutter_windowmanager.dart';
44

55
void main() {
6+
TestWidgetsFlutterBinding.ensureInitialized();
67
const MethodChannel channel = MethodChannel('flutter_windowmanager');
7-
final List<MethodCall> log = List<MethodCall>();
8+
final List<MethodCall> log = <MethodCall>[];
89

910
setUp(() {
1011
channel.setMockMethodCallHandler((MethodCall methodCall) async {
1112
log.add(methodCall);
13+
return true;
1214
});
1315
});
1416

0 commit comments

Comments
 (0)