Skip to content

Commit

Permalink
fixup! TW-1846 Update file picker send screen style
Browse files Browse the repository at this point in the history
  • Loading branch information
KhaledNjim committed Dec 5, 2024
1 parent a57a73f commit e04c6ab
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
2 changes: 0 additions & 2 deletions lib/pages/chat/send_file_dialog/send_file_dialog_style.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,4 @@ class SendFileDialogStyle {
);

static const double errorSubHeaderWidth = 340;

static const double heightOfBottomSheet = 400;
}
4 changes: 2 additions & 2 deletions lib/presentation/mixins/media_picker_mixin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ mixin MediaPickerMixin on CommonMediaPickerMixin {
});

return await linagora_image_picker.ImagePicker.showImagesGridBottomSheet(
heightOfBottomSheet: SendFileDialogStyle.heightOfBottomSheet,
context: context,
controller: imagePickerController,
backgroundImageCamera: MediaPickerStyle.cameraIcon,
initialChildSize: MediaPickerStyle.initialChildSize,
minChildSize: MediaPickerStyle.initialChildSize,
permissionStatus: permissionStatusPhotos,
gridPadding: MediaPickerStyle.gridPadding,
assetBackgroundColor: LinagoraSysColors.material().background,
Expand Down Expand Up @@ -139,7 +139,7 @@ mixin MediaPickerMixin on CommonMediaPickerMixin {
return Container(
padding: MediaPickerStyle.itemPickerPadding,
decoration: BoxDecoration(
color: Colors.white,
color: LinagoraSysColors.material().surface,
border: Border(
top: BorderSide(
color: Theme.of(context)
Expand Down
2 changes: 1 addition & 1 deletion lib/presentation/style/media_picker_style.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
class MediaPickerStyle {
static const AssetImage cameraIcon = AssetImage("assets/verification.png");

static const initialChildSize = 0.6;
static const initialChildSize = 0.5;

static const EdgeInsets gridPadding = EdgeInsets.only(bottom: 150);

Expand Down
8 changes: 4 additions & 4 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1786,8 +1786,8 @@ packages:
dependency: "direct main"
description:
path: "."
ref: master
resolved-ref: f5e0f2d0f9450dda58c72233f72fb48cf7d2769b
ref: LA-1846_Update_image_picker_design
resolved-ref: ef91e6d3e53418cd744fe60bd6a8c36bbe30fff0
url: "[email protected]:linagora/linagora-design-flutter.git"
source: git
version: "0.0.1"
Expand Down Expand Up @@ -3227,10 +3227,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256: f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
url: "https://pub.dev"
source: hosted
version: "14.2.4"
version: "14.2.5"
volume_controller:
dependency: transitive
description:
Expand Down
3 changes: 2 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ dependencies:
linagora_design_flutter:
git:
url: [email protected]:linagora/linagora-design-flutter.git
ref: master
ref: LA-1846_Update_image_picker_design

flutter_matrix_html:
git:
url: https://github.com/linagora/flutter_matrix_html.git
Expand Down

0 comments on commit e04c6ab

Please sign in to comment.