Skip to content

Commit

Permalink
fix deprecated warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
demchenkoalex committed Nov 26, 2023
1 parent 9d80cb8 commit 2fc0bc1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion example/macos/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0920;
LastUpgradeCheck = 1300;
LastUpgradeCheck = 1430;
ORGANIZATIONNAME = "";
TargetAttributes = {
331C80D4294CF70F00263BE5 = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1300"
LastUpgradeVersion = "1430"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
9 changes: 5 additions & 4 deletions lib/src/widgets/image_gallery.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ class ImageGallery extends StatelessWidget {
);

@override
Widget build(BuildContext context) => WillPopScope(
onWillPop: () async {
onClosePressed();
return false;
Widget build(BuildContext context) => PopScope(
onPopInvoked: (didPop) {
if (didPop) {
onClosePressed();
}
},
child: Dismissible(
key: const Key('photo_view_gallery'),
Expand Down
4 changes: 2 additions & 2 deletions lib/src/widgets/typing_indicator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ class AvatarHandler extends StatelessWidget {
.countTextColor,
),
textAlign: TextAlign.center,
textScaleFactor: 0.7,
textScaler: const TextScaler.linear(0.7),
),
),
),
Expand Down Expand Up @@ -389,7 +389,7 @@ class TypingAvatar extends StatelessWidget {
? Text(
initials,
style: InheritedChatTheme.of(context).theme.userAvatarTextStyle,
textScaleFactor: 0.7,
textScaler: const TextScaler.linear(0.7),
)
: null,
);
Expand Down

0 comments on commit 2fc0bc1

Please sign in to comment.