diff --git a/CHANGELOG.md b/CHANGELOG.md index 092ed8d..11726e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ * Updates minimum supported SDK version to Flutter 3.3/Dart 3.0. * Fixed deprecations and dependencies version #27 +## 0.1.5 + +* [windows] Add setup method for initialization and removed setAppName method #16 #14 #9 #7 + ## 0.1.4 * [linux] Fixed build failed with error. #8 diff --git a/example/analysis_options.yaml b/example/analysis_options.yaml index 095b1d6..9033bb2 100644 --- a/example/analysis_options.yaml +++ b/example/analysis_options.yaml @@ -1 +1 @@ -include: package:mostly_reasonable_lints/flutter.yaml +include: package:mostly_reasonable_lints/analysis_options.yaml diff --git a/example/lib/pages/home.dart b/example/lib/pages/home.dart index f27e6b2..522c630 100644 --- a/example/lib/pages/home.dart +++ b/example/lib/pages/home.dart @@ -4,7 +4,6 @@ import 'package:bot_toast/bot_toast.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:local_notifier/local_notifier.dart'; -import 'package:preference_list/preference_list.dart'; import 'package:tray_manager/tray_manager.dart'; import 'package:window_manager/window_manager.dart'; @@ -153,28 +152,32 @@ class _HomePageState extends State with TrayListener { } Widget _buildBody(BuildContext context) { - return PreferenceList( + return ListView( children: [ - PreferenceListSection( + Column( children: [ - PreferenceListItem( + ListTile( title: const Text('New a notification'), onTap: _handleNewLocalNotification, ), ], ), - PreferenceListSection( - title: Text('${_exampleNotification?.identifier}'), + Column( children: [ - PreferenceListItem( + Row( + children: [ + Text('${_exampleNotification?.identifier}'), + ], + ), + ListTile( title: const Text('show'), onTap: () => _exampleNotification?.show(), ), - PreferenceListItem( + ListTile( title: const Text('close'), onTap: () => _exampleNotification?.close(), ), - PreferenceListItem( + ListTile( title: const Text('destroy'), onTap: () async { await _exampleNotification?.destroy(); @@ -185,14 +188,18 @@ class _HomePageState extends State with TrayListener { ], ), for (var notification in _notificationList) - PreferenceListSection( - title: Text(notification.identifier), + Column( children: [ - PreferenceListItem( + Row( + children: [ + Text(notification.identifier), + ], + ), + ListTile( title: const Text('show'), onTap: () => notification.show(), ), - PreferenceListItem( + ListTile( title: const Text('close'), onTap: () => notification.close(), ), diff --git a/example/macos/Runner/AppDelegate.swift b/example/macos/Runner/AppDelegate.swift index 218f93e..a6f73a8 100644 --- a/example/macos/Runner/AppDelegate.swift +++ b/example/macos/Runner/AppDelegate.swift @@ -1,7 +1,7 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return false diff --git a/example/pubspec.lock b/example/pubspec.lock index 5e4fbc6..4f68393 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -95,34 +95,34 @@ packages: dependency: transitive description: name: leak_tracker - sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" + sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" url: "https://pub.dev" source: hosted - version: "10.0.0" + version: "10.0.5" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 + sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "3.0.5" leak_tracker_testing: dependency: transitive description: name: leak_tracker_testing - sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 + sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "3.0.1" lints: dependency: transitive description: name: lints - sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 + sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235" url: "https://pub.dev" source: hosted - version: "3.0.0" + version: "4.0.0" local_notifier: dependency: "direct main" description: @@ -142,10 +142,10 @@ packages: dependency: transitive description: name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.8.0" + version: "0.11.1" menu_base: dependency: transitive description: @@ -158,18 +158,18 @@ packages: dependency: transitive description: name: meta - sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.15.0" mostly_reasonable_lints: dependency: "direct dev" description: name: mostly_reasonable_lints - sha256: c61cc6b211f54188eef15e0ad7c9b00e8c001478ac253a52036ef7391b532b7c + sha256: e19fec63536866ba307b3dfbc258b4bce9b3745129f038006b56b4067c6293d8 url: "https://pub.dev" source: hosted - version: "0.1.1" + version: "0.1.2" path: dependency: transitive description: @@ -178,14 +178,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.9.0" - preference_list: - dependency: "direct main" - description: - name: preference_list - sha256: d3419b2ec57a6ad2156bd682a46cf3194bf162b36bb013790c7b29e6438f107a - url: "https://pub.dev" - source: hosted - version: "0.0.1" screen_retriever: dependency: transitive description: @@ -259,10 +251,10 @@ packages: dependency: transitive description: name: test_api - sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" url: "https://pub.dev" source: hosted - version: "0.6.1" + version: "0.7.2" tray_manager: dependency: "direct main" description: @@ -299,10 +291,10 @@ packages: dependency: transitive description: name: vm_service - sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" url: "https://pub.dev" source: hosted - version: "13.0.0" + version: "14.2.5" window_manager: dependency: "direct main" description: @@ -312,5 +304,5 @@ packages: source: hosted version: "0.3.8" sdks: - dart: ">=3.2.0-0 <4.0.0" - flutter: ">=3.3.0" + dart: ">=3.3.0 <4.0.0" + flutter: ">=3.18.0-18.0.pre.54" diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 137b36d..9c356ce 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -12,14 +12,13 @@ dependencies: sdk: flutter local_notifier: path: ../ - preference_list: ^0.0.1 tray_manager: ^0.2.2 window_manager: ^0.3.8 dev_dependencies: flutter_test: sdk: flutter - mostly_reasonable_lints: ^0.1.1 + mostly_reasonable_lints: ^0.1.2 flutter: uses-material-design: true