diff --git a/example/lib/main.dart b/example/lib/main.dart index a336f13..b6cb94e 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -1,7 +1,5 @@ import 'package:flutter/material.dart'; -import 'dart:async'; -import 'package:flutter/services.dart'; import 'package:make_app_endless_plugin/make_app_endless_plugin.dart'; void main() { @@ -33,7 +31,7 @@ class _MyAppState extends State { child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - RaisedButton( + ElevatedButton( child: const Text('Make Endless'), onPressed: () async { await plugin.extendLifeCycle( @@ -43,7 +41,7 @@ class _MyAppState extends State { "No description required"); // Notification Content description }, ), - RaisedButton( + ElevatedButton( child: const Text('Stop'), onPressed: () async { await plugin.stopLifeCycleExtension(); diff --git a/pubspec.yaml b/pubspec.yaml index d30ae3a..8e3eb3a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.0.4 homepage: https://github.com/chetan882777/make-app-endless-plugin environment: - sdk: ">=2.7.0 <3.0.0" + sdk: '>=2.12.0 <3.0.0' flutter: ">=1.20.0 <2.0.0" dependencies: diff --git a/test/make_app_endless_plugin_test.dart b/test/make_app_endless_plugin_test.dart index 67a2a3d..d0ab923 100644 --- a/test/make_app_endless_plugin_test.dart +++ b/test/make_app_endless_plugin_test.dart @@ -1,6 +1,5 @@ import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; -import 'package:make_app_endless_plugin/make_app_endless_plugin.dart'; void main() { const MethodChannel channel = MethodChannel('make_app_endless_plugin');