From a47330c58eddd2cc97287dd2a105d4c934efd747 Mon Sep 17 00:00:00 2001 From: Plague Fox Date: Thu, 2 Nov 2023 18:55:30 +0400 Subject: [PATCH] Update dependencies --- example/.fvm/fvm_config.json | 4 ++-- example/lib/src/common/widget/app.dart | 3 ++- example/lib/src/feature/chat/model/message.dart | 6 ++++++ example/pubspec.yaml | 2 +- pubspec.yaml | 6 +++--- 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/example/.fvm/fvm_config.json b/example/.fvm/fvm_config.json index 2038915..41959e9 100644 --- a/example/.fvm/fvm_config.json +++ b/example/.fvm/fvm_config.json @@ -1,4 +1,4 @@ { - "flutterSdkVersion": "beta", + "flutterSdkVersion": "stable", "flavors": {} -} \ No newline at end of file +} diff --git a/example/lib/src/common/widget/app.dart b/example/lib/src/common/widget/app.dart index 458a2bf..ff27bb4 100644 --- a/example/lib/src/common/widget/app.dart +++ b/example/lib/src/common/widget/app.dart @@ -40,7 +40,8 @@ class App extends StatelessWidget { const Locale('en', 'US'), builder: (context, child) => MediaQuery( data: MediaQuery.of(context).copyWith( - textScaler: TextScaler.noScaling, + /* textScaler: TextScaler.noScaling, */ + textScaleFactor: 1, ), child: WindowScope( /* title: Localization.of(context).title, */ diff --git a/example/lib/src/feature/chat/model/message.dart b/example/lib/src/feature/chat/model/message.dart index 104ba96..4367fa9 100644 --- a/example/lib/src/feature/chat/model/message.dart +++ b/example/lib/src/feature/chat/model/message.dart @@ -70,6 +70,9 @@ final class PlainMessage extends Message { 'version': version, 'createdAt': createdAt.millisecondsSinceEpoch ~/ 1000, }; + + @override + String toString() => '$author: $text'; } final class EncryptedMessage extends Message { @@ -112,6 +115,9 @@ final class EncryptedMessage extends Message { 'version': version, 'createdAt': createdAt.millisecondsSinceEpoch ~/ 1000, }; + + @override + String toString() => '$author: $text'; } @immutable diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 802f9dc..fe83978 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -91,7 +91,7 @@ dev_dependencies: #flutter_gen_runner: ^5.3.1 # Linting - flutter_lints: ^2.0.1 + flutter_lints: ^3.0.0 flutter: diff --git a/pubspec.yaml b/pubspec.yaml index 282a3b6..17e4f48 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -49,7 +49,7 @@ dependencies: ws: ^1.0.0-pre.6 # Protocol Buffers - protobuf: ^3.0.0 + protobuf: ^3.1.0 # Utilities crypto: ^3.0.3 @@ -60,5 +60,5 @@ dependencies: dev_dependencies: build_runner: ^2.4.6 pubspec_generator: ^4.0.0 - lints: ">=2.0.1 <4.0.0" - test: ^1.24.2 + lints: ^3.0.0 + test: ^1.24.4