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": {}
}
+4 -2
View File
@@ -15,7 +15,6 @@ migrate_working_dir/
*.ipr
*.iws
.idea/
.fvm
# 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
@@ -32,4 +31,7 @@ build/
.metadata
**/pubspec.lock
**/Podfile.lock
**/Podfile.lock
# FVM Version Cache
.fvm/
+1 -1
View File
@@ -215,7 +215,7 @@
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = YES;
LastUpgradeCheck = 1430;
LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
331C8080294A63A400263BE5 = {
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
LastUpgradeVersion = "1510"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
+1 -1
View File
@@ -1,7 +1,7 @@
import UIKit
import Flutter
@UIApplicationMain
@main
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
+11 -5
View File
@@ -245,7 +245,9 @@ class _AppBodyState extends State<AppBody> {
_nearbyService.startCommunicationChannel(
NearbyCommunicationChannelData(
device.info.id,
filesListener: NearbyServiceFilesListener(onData: _filesListener),
filesListener: NearbyServiceFilesListener(
onData: (pack) => _filesListener(Scaffold.of(context).context, pack),
),
messagesListener: NearbyServiceMessagesListener(
onData: _messagesListener,
onCreated: () {
@@ -329,10 +331,14 @@ class _AppBodyState extends State<AppBody> {
);
}
void _filesListener(ReceivedNearbyFilesPack pack) {
FilesSaver.savePack(pack).then(
(value) => AppSnackBar.show(context, title: 'Files pack was saved'),
);
Future<void> _filesListener(
BuildContext context,
ReceivedNearbyFilesPack pack,
) async {
await FilesSaver.savePack(pack);
if (context.mounted) {
AppSnackBar.show(context, title: 'Files pack was saved');
}
}
Future<void> _send(NearbyMessageContent content) async {
+3
View File
@@ -41,3 +41,6 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release
# FVM Version Cache
.fvm/
@@ -216,7 +216,7 @@
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = YES;
LastUpgradeCheck = 1430;
LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
331C8080294A63A400263BE5 = {
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
LastUpgradeVersion = "1510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
+1 -1
View File
@@ -1,7 +1,7 @@
import UIKit
import Flutter
@UIApplicationMain
@main
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
@@ -116,7 +116,7 @@ class _InfoChip extends StatelessWidget {
return Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(16),
color: Theme.of(context).colorScheme.background,
color: Theme.of(context).colorScheme.surface,
boxShadow: [
BoxShadow(
blurRadius: 2,
@@ -133,13 +133,13 @@ class _InfoChip extends StatelessWidget {
'$label: ',
style: TextStyle(
fontWeight: FontWeight.bold,
color: Theme.of(context).colorScheme.onBackground,
color: Theme.of(context).colorScheme.onSurface,
),
),
Text(
value,
style: TextStyle(
color: Theme.of(context).colorScheme.onBackground,
color: Theme.of(context).colorScheme.onSurface,
),
),
],
@@ -26,11 +26,13 @@ class _CheckServiceViewState extends State<CheckServiceView> {
setState(() {
showEnableButton = true;
});
AppShackBar.show(
context,
'Please enable Wi-fi',
actionType: ActionType.warning,
);
if (context.mounted) {
AppShackBar.show(
context,
'Please enable Wi-fi',
actionType: ActionType.warning,
);
}
}
});
},
@@ -19,4 +19,4 @@ abstract class NearbyServiceExceptionMapper {
bool canMap(String error);
NearbyServiceException map(String error);
}
}