Release v0.0.9 (#10)

* chore: update flutter, prepare to 0.0.9

* chore: update example
This commit is contained in:
Kseniia Nikitina
2024-08-10 22:10:08 +02:00
committed by GitHub
parent a5c77f58e5
commit 7f8cbbffae
13 changed files with 36 additions and 23 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{ {
"flutter": "3.10.6", "flutter": "3.24.0",
"flavors": {} "flavors": {}
} }
+3 -1
View File
@@ -15,7 +15,6 @@ migrate_working_dir/
*.ipr *.ipr
*.iws *.iws
.idea/ .idea/
.fvm
# The .vscode folder contains launch configuration and tasks you configure in # The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line # VS Code which you may wish to be included in version control, so this line
@@ -33,3 +32,6 @@ build/
**/pubspec.lock **/pubspec.lock
**/Podfile.lock **/Podfile.lock
# FVM Version Cache
.fvm/
+1 -1
View File
@@ -215,7 +215,7 @@
isa = PBXProject; isa = PBXProject;
attributes = { attributes = {
BuildIndependentTargetsInParallel = YES; BuildIndependentTargetsInParallel = YES;
LastUpgradeCheck = 1430; LastUpgradeCheck = 1510;
ORGANIZATIONNAME = ""; ORGANIZATIONNAME = "";
TargetAttributes = { TargetAttributes = {
331C8080294A63A400263BE5 = { 331C8080294A63A400263BE5 = {
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<Scheme <Scheme
LastUpgradeVersion = "1430" LastUpgradeVersion = "1510"
version = "1.7"> version = "1.7">
<BuildAction <BuildAction
parallelizeBuildables = "YES" parallelizeBuildables = "YES"
+1 -1
View File
@@ -1,7 +1,7 @@
import UIKit import UIKit
import Flutter import Flutter
@UIApplicationMain @main
@objc class AppDelegate: FlutterAppDelegate { @objc class AppDelegate: FlutterAppDelegate {
override func application( override func application(
_ application: UIApplication, _ application: UIApplication,
+11 -5
View File
@@ -245,7 +245,9 @@ class _AppBodyState extends State<AppBody> {
_nearbyService.startCommunicationChannel( _nearbyService.startCommunicationChannel(
NearbyCommunicationChannelData( NearbyCommunicationChannelData(
device.info.id, device.info.id,
filesListener: NearbyServiceFilesListener(onData: _filesListener), filesListener: NearbyServiceFilesListener(
onData: (pack) => _filesListener(Scaffold.of(context).context, pack),
),
messagesListener: NearbyServiceMessagesListener( messagesListener: NearbyServiceMessagesListener(
onData: _messagesListener, onData: _messagesListener,
onCreated: () { onCreated: () {
@@ -329,10 +331,14 @@ class _AppBodyState extends State<AppBody> {
); );
} }
void _filesListener(ReceivedNearbyFilesPack pack) { Future<void> _filesListener(
FilesSaver.savePack(pack).then( BuildContext context,
(value) => AppSnackBar.show(context, title: 'Files pack was saved'), ReceivedNearbyFilesPack pack,
); ) async {
await FilesSaver.savePack(pack);
if (context.mounted) {
AppSnackBar.show(context, title: 'Files pack was saved');
}
} }
Future<void> _send(NearbyMessageContent content) async { Future<void> _send(NearbyMessageContent content) async {
+3
View File
@@ -41,3 +41,6 @@ app.*.map.json
/android/app/debug /android/app/debug
/android/app/profile /android/app/profile
/android/app/release /android/app/release
# FVM Version Cache
.fvm/
@@ -216,7 +216,7 @@
isa = PBXProject; isa = PBXProject;
attributes = { attributes = {
BuildIndependentTargetsInParallel = YES; BuildIndependentTargetsInParallel = YES;
LastUpgradeCheck = 1430; LastUpgradeCheck = 1510;
ORGANIZATIONNAME = ""; ORGANIZATIONNAME = "";
TargetAttributes = { TargetAttributes = {
331C8080294A63A400263BE5 = { 331C8080294A63A400263BE5 = {
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<Scheme <Scheme
LastUpgradeVersion = "1430" LastUpgradeVersion = "1510"
version = "1.3"> version = "1.3">
<BuildAction <BuildAction
parallelizeBuildables = "YES" parallelizeBuildables = "YES"
+1 -1
View File
@@ -1,7 +1,7 @@
import UIKit import UIKit
import Flutter import Flutter
@UIApplicationMain @main
@objc class AppDelegate: FlutterAppDelegate { @objc class AppDelegate: FlutterAppDelegate {
override func application( override func application(
_ application: UIApplication, _ application: UIApplication,
@@ -116,7 +116,7 @@ class _InfoChip extends StatelessWidget {
return Container( return Container(
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(16), borderRadius: BorderRadius.circular(16),
color: Theme.of(context).colorScheme.background, color: Theme.of(context).colorScheme.surface,
boxShadow: [ boxShadow: [
BoxShadow( BoxShadow(
blurRadius: 2, blurRadius: 2,
@@ -133,13 +133,13 @@ class _InfoChip extends StatelessWidget {
'$label: ', '$label: ',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: Theme.of(context).colorScheme.onBackground, color: Theme.of(context).colorScheme.onSurface,
), ),
), ),
Text( Text(
value, value,
style: TextStyle( style: TextStyle(
color: Theme.of(context).colorScheme.onBackground, color: Theme.of(context).colorScheme.onSurface,
), ),
), ),
], ],
@@ -26,12 +26,14 @@ class _CheckServiceViewState extends State<CheckServiceView> {
setState(() { setState(() {
showEnableButton = true; showEnableButton = true;
}); });
if (context.mounted) {
AppShackBar.show( AppShackBar.show(
context, context,
'Please enable Wi-fi', 'Please enable Wi-fi',
actionType: ActionType.warning, actionType: ActionType.warning,
); );
} }
}
}); });
}, },
title: 'Check Wi-fi service', title: 'Check Wi-fi service',