Skip to content

Commit a205a54

Browse files
committed
Update dependencies
1 parent b361c2e commit a205a54

File tree

11 files changed

+277
-117
lines changed

11 files changed

+277
-117
lines changed

lib/pages/main/browser.dart

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -195,23 +195,31 @@ class _DeviceBrowserPageState extends ConsumerState<DeviceBrowserPage> {
195195
}
196196

197197
MultiSplitViewTheme _buildBody() {
198+
var dividerColor = Theme.of(context).dividerColor;
199+
const dividerThickness = 5.0;
200+
198201
return MultiSplitViewTheme(
199-
data: MultiSplitViewThemeData(dividerThickness: 5.5),
202+
data: MultiSplitViewThemeData(dividerThickness: dividerThickness),
200203
child: MultiSplitView(
201-
initialAreas: [Area(weight: 0.15)],
202-
children: [
203-
_ShortcutsColumn(
204-
serial: widget.serial,
205-
onWatchAdd: onWatchAdd,
204+
initialAreas: [
205+
Area(
206+
flex: 0.15,
207+
builder: (context, area) => _ShortcutsColumn(
208+
serial: widget.serial,
209+
onWatchAdd: onWatchAdd,
210+
),
206211
),
207-
Center(child: _fileListContainer())
212+
Area(
213+
builder: (context, area) => Center(child: _fileListContainer()),
214+
)
208215
],
209216
dividerBuilder:
210217
(axis, index, resizable, dragging, highlighted, themeData) =>
211218
Container(
212-
margin: const EdgeInsets.symmetric(horizontal: 1.5),
213-
width: 0.5,
214-
color: Colors.black),
219+
margin: const EdgeInsets.symmetric(horizontal: 1.5),
220+
width: 1,
221+
color: dividerColor,
222+
),
215223
),
216224
);
217225
}

lib/src/pigeon.g.dart

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Autogenerated from Pigeon (v18.0.0), do not edit directly.
1+
// Autogenerated from Pigeon (v22.3.0), do not edit directly.
22
// See also: https://pub.dev/packages/pigeon
33
// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import, no_leading_underscores_for_local_identifiers
44

@@ -8,8 +8,13 @@ import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List;
88
import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer;
99
import 'package:flutter/services.dart';
1010

11+
12+
class _PigeonCodec extends StandardMessageCodec {
13+
const _PigeonCodec();
14+
}
15+
1116
abstract class Native2Flutter {
12-
static const MessageCodec<Object?> pigeonChannelCodec = StandardMessageCodec();
17+
static const MessageCodec<Object?> pigeonChannelCodec = _PigeonCodec();
1318

1419
static void setUp(Native2Flutter? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) {
1520
messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : '';

linux/flutter/generated_plugin_registrant.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <desktop_drop/desktop_drop_plugin.h>
1010
#include <file_selector_linux/file_selector_plugin.h>
11+
#include <open_file_linux/open_file_linux_plugin.h>
1112

1213
void fl_register_plugins(FlPluginRegistry* registry) {
1314
g_autoptr(FlPluginRegistrar) desktop_drop_registrar =
@@ -16,4 +17,7 @@ void fl_register_plugins(FlPluginRegistry* registry) {
1617
g_autoptr(FlPluginRegistrar) file_selector_linux_registrar =
1718
fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin");
1819
file_selector_plugin_register_with_registrar(file_selector_linux_registrar);
20+
g_autoptr(FlPluginRegistrar) open_file_linux_registrar =
21+
fl_plugin_registry_get_registrar_for_plugin(registry, "OpenFileLinuxPlugin");
22+
open_file_linux_plugin_register_with_registrar(open_file_linux_registrar);
1923
}

linux/flutter/generated_plugins.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
list(APPEND FLUTTER_PLUGIN_LIST
66
desktop_drop
77
file_selector_linux
8+
open_file_linux
89
)
910

1011
list(APPEND FLUTTER_FFI_PLUGIN_LIST

macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ import Foundation
77

88
import desktop_drop
99
import file_selector_macos
10+
import open_file_mac
1011
import path_provider_foundation
1112
import shared_preferences_foundation
1213

1314
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
1415
DesktopDropPlugin.register(with: registry.registrar(forPlugin: "DesktopDropPlugin"))
1516
FileSelectorPlugin.register(with: registry.registrar(forPlugin: "FileSelectorPlugin"))
17+
OpenFilePlugin.register(with: registry.registrar(forPlugin: "OpenFilePlugin"))
1618
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
1719
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
1820
}

macos/Runner/pigeon.g.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Autogenerated from Pigeon (v18.0.0), do not edit directly.
1+
// Autogenerated from Pigeon (v22.3.0), do not edit directly.
22
// See also: https://pub.dev/packages/pigeon
33

44
#import <Foundation/Foundation.h>
@@ -11,8 +11,8 @@
1111
NS_ASSUME_NONNULL_BEGIN
1212

1313

14-
/// The codec used by PGNNative2Flutter.
15-
NSObject<FlutterMessageCodec> *PGNNative2FlutterGetCodec(void);
14+
/// The codec used by all APIs.
15+
NSObject<FlutterMessageCodec> *PGNGetPigeonCodec(void);
1616

1717
@interface PGNNative2Flutter : NSObject
1818
- (instancetype)initWithBinaryMessenger:(id<FlutterBinaryMessenger>)binaryMessenger;

macos/Runner/pigeon.g.m

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Autogenerated from Pigeon (v18.0.0), do not edit directly.
1+
// Autogenerated from Pigeon (v22.3.0), do not edit directly.
22
// See also: https://pub.dev/packages/pigeon
33

44
#import "pigeon.g.h"
@@ -14,12 +14,47 @@
1414
#endif
1515

1616

17-
NSObject<FlutterMessageCodec> *PGNNative2FlutterGetCodec(void) {
17+
@interface PGNPigeonPigeonCodecReader : FlutterStandardReader
18+
@end
19+
@implementation PGNPigeonPigeonCodecReader
20+
- (nullable id)readValueOfType:(UInt8)type {
21+
switch (type) {
22+
default:
23+
return [super readValueOfType:type];
24+
}
25+
}
26+
@end
27+
28+
@interface PGNPigeonPigeonCodecWriter : FlutterStandardWriter
29+
@end
30+
@implementation PGNPigeonPigeonCodecWriter
31+
- (void)writeValue:(id)value {
32+
{
33+
[super writeValue:value];
34+
}
35+
}
36+
@end
37+
38+
@interface PGNPigeonPigeonCodecReaderWriter : FlutterStandardReaderWriter
39+
@end
40+
@implementation PGNPigeonPigeonCodecReaderWriter
41+
- (FlutterStandardWriter *)writerWithData:(NSMutableData *)data {
42+
return [[PGNPigeonPigeonCodecWriter alloc] initWithData:data];
43+
}
44+
- (FlutterStandardReader *)readerWithData:(NSData *)data {
45+
return [[PGNPigeonPigeonCodecReader alloc] initWithData:data];
46+
}
47+
@end
48+
49+
NSObject<FlutterMessageCodec> *PGNGetPigeonCodec(void) {
1850
static FlutterStandardMessageCodec *sSharedObject = nil;
19-
sSharedObject = [FlutterStandardMessageCodec sharedInstance];
51+
static dispatch_once_t sPred = 0;
52+
dispatch_once(&sPred, ^{
53+
PGNPigeonPigeonCodecReaderWriter *readerWriter = [[PGNPigeonPigeonCodecReaderWriter alloc] init];
54+
sSharedObject = [FlutterStandardMessageCodec codecWithReaderWriter:readerWriter];
55+
});
2056
return sSharedObject;
2157
}
22-
2358
@interface PGNNative2Flutter ()
2459
@property(nonatomic, strong) NSObject<FlutterBinaryMessenger> *binaryMessenger;
2560
@property(nonatomic, strong) NSString *messageChannelSuffix;

0 commit comments

Comments
 (0)