-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TW-1358: Add Slidable Chat List Item - Pin/Unpin
- Loading branch information
Julian KOUNE
committed
Jan 24, 2024
1 parent
b2f2ff1
commit 3491eba
Showing
5 changed files
with
127 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
import 'package:flutter/cupertino.dart'; | ||
import 'package:fluffychat/di/global/get_it_initializer.dart'; | ||
import 'package:fluffychat/utils/responsive/responsive_utils.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class ChatListViewStyle { | ||
static final responsiveUtils = getIt.get<ResponsiveUtils>(); | ||
|
||
static const editIconSize = 18.0; | ||
|
||
static Size preferredSizeAppBar(BuildContext context) => | ||
const Size.fromHeight(120); | ||
|
||
// Between 0 and 1, scale on actions length | ||
static const double slidableExtentRatio = 0.25; | ||
static const Color slidableForegroundColorDefault = Colors.white; | ||
static const Color pinSlidableColorRaw = Color(0xFF00C853); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters