feat: update attachment buttons animation curve
This commit is contained in:
@@ -578,6 +578,8 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
crossFadeState: _actionsShrunk
|
crossFadeState: _actionsShrunk
|
||||||
? CrossFadeState.showFirst
|
? CrossFadeState.showFirst
|
||||||
: CrossFadeState.showSecond,
|
: CrossFadeState.showSecond,
|
||||||
|
firstCurve: Curves.easeOut,
|
||||||
|
secondCurve: Curves.easeIn,
|
||||||
firstChild: IconButton(
|
firstChild: IconButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
if (_actionsShrunk) {
|
if (_actionsShrunk) {
|
||||||
@@ -1086,6 +1088,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
|
|
||||||
return AnimatedContainer(
|
return AnimatedContainer(
|
||||||
duration: const Duration(milliseconds: 300),
|
duration: const Duration(milliseconds: 300),
|
||||||
|
curve: Curves.easeOut,
|
||||||
height: _openFilePickerSection ? _kMinMediaPickerSize : 0,
|
height: _openFilePickerSection ? _kMinMediaPickerSize : 0,
|
||||||
child: Material(
|
child: Material(
|
||||||
color: _streamChatTheme.colorTheme.inputBg,
|
color: _streamChatTheme.colorTheme.inputBg,
|
||||||
|
|||||||
Reference in New Issue
Block a user