Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Remove drag handle and make header row draggable in comments sheet

ashilknb80e467b7a9d
diff --git a/mobile/apps/photos/lib/ui/social/comments_screen.dart b/mobile/apps/photos/lib/ui/social/comments_screen.dart
index 967cdce363..ae864fef3a 100644
--- a/mobile/apps/photos/lib/ui/social/comments_screen.dart
+++ b/mobile/apps/photos/lib/ui/social/comments_screen.dart
@@ -464,33 +464,13 @@ class _FileCommentsBottomSheetState extends State<FileCommentsBottomSheet> {
.collection;
}
- Widget _buildDragHandle(BuildContext context) {
- final colorScheme = getEnteColorScheme(context);
+ Widget _buildHeader(BuildContext context) {
+ final textTheme = getEnteTextTheme(context);
return SingleChildScrollView(
controller: widget.dragController,
physics: const ClampingScrollPhysics(),
- child: Center(
- child: Container(
- margin: const EdgeInsets.only(top: 12, bottom: 4),
- width: 32,
- height: 4,
- decoration: BoxDecoration(
- color: colorScheme.strokeFaint,
- borderRadius: BorderRadius.circular(2),
- ),
- ),
- ),
- );
- }
-
- Widget _buildHeader(BuildContext context) {
- final textTheme = getEnteTextTheme(context);
- return GestureDetector(
- onVerticalDragStart: (_) {},
- onVerticalDragUpdate: (_) {},
- onVerticalDragEnd: (_) {},
child: Padding(
- padding: const EdgeInsets.fromLTRB(16, 0, 12, 8),
+ padding: const EdgeInsets.fromLTRB(16, 12, 12, 8),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
@@ -536,7 +516,6 @@ class _FileCommentsBottomSheetState extends State<FileCommentsBottomSheet> {
top: false,
child: Column(
children: [
- _buildDragHandle(context),
_buildHeader(context),
Expanded(
child: GestureDetector(