feat, fix: Added animation, fixed modal issues
This commit is contained in:
+23
-14
@@ -663,8 +663,9 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
_filePickerSize -= update.delta.dy;
|
_filePickerSize -= update.delta.dy;
|
||||||
if (_filePickerSize < 100) {
|
if (_filePickerSize < 100) {
|
||||||
_filePickerSize = 100.0;
|
_filePickerSize = 100.0;
|
||||||
} else if (_filePickerSize > 500) {
|
} else if (_filePickerSize >
|
||||||
_filePickerSize = 500;
|
MediaQuery.of(context).size.height / 1.7) {
|
||||||
|
_filePickerSize = MediaQuery.of(context).size.height / 1.7;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -732,21 +733,28 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
: BoxFit.fitHeight,
|
: BoxFit.fitHeight,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (_attachments.any((element) =>
|
IgnorePointer(
|
||||||
element.id == _mediaData.item1[position].id))
|
child: AnimatedOpacity(
|
||||||
Container(
|
duration: Duration(milliseconds: 300),
|
||||||
color: Colors.black.withOpacity(0.5),
|
opacity: _attachments.any((element) =>
|
||||||
child: Center(
|
element.id == _mediaData.item1[position].id)
|
||||||
child: CircleAvatar(
|
? 1.0
|
||||||
maxRadius: 12.0,
|
: 0.0,
|
||||||
backgroundColor: Colors.white,
|
child: Container(
|
||||||
child: Icon(
|
color: Colors.black.withOpacity(0.5),
|
||||||
StreamIcons.check,
|
child: Center(
|
||||||
color: Colors.black,
|
child: CircleAvatar(
|
||||||
|
maxRadius: 12.0,
|
||||||
|
backgroundColor: Colors.white,
|
||||||
|
child: Icon(
|
||||||
|
StreamIcons.check,
|
||||||
|
color: Colors.black,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
@@ -829,7 +837,8 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
|
|
||||||
void _getAllMedia() async {
|
void _getAllMedia() async {
|
||||||
var allAlbums = await PhotoGallery.listAlbums(mediumType: MediumType.image);
|
var allAlbums = await PhotoGallery.listAlbums(mediumType: MediumType.image);
|
||||||
var allVideoAlbums = await PhotoGallery.listAlbums(mediumType: MediumType.video);
|
var allVideoAlbums =
|
||||||
|
await PhotoGallery.listAlbums(mediumType: MediumType.video);
|
||||||
List<Medium> resultList = [];
|
List<Medium> resultList = [];
|
||||||
List<List<dynamic>> resultThumbnailList = [];
|
List<List<dynamic>> resultThumbnailList = [];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user