-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/532627-text-reply
- Loading branch information
Showing
16 changed files
with
334 additions
and
182 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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import 'package:get/get.dart'; | ||
|
||
extension FutureExtension on Future { | ||
Future<dynamic> trueWhile<T>(Rx<bool> rxValue) { | ||
rxValue.value = true; | ||
|
||
return whenComplete( | ||
() => rxValue.value = false, | ||
); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import 'dart:async'; | ||
|
||
import 'package:flutter/material.dart'; | ||
import 'package:get/get.dart'; | ||
|
||
import '../../themes/colors/ds_colors.theme.dart'; | ||
import '../../themes/icons/ds_icons.dart'; | ||
|
||
class DSUploading extends StatefulWidget { | ||
final double size; | ||
final Color color; | ||
|
||
const DSUploading({ | ||
super.key, | ||
this.size = 24.0, | ||
this.color = DSColors.neutralLightSnow, | ||
}); | ||
|
||
@override | ||
State<DSUploading> createState() => _DSUploadingState(); | ||
} | ||
|
||
class _DSUploadingState extends State<DSUploading> { | ||
final _visible = RxBool(false); | ||
|
||
@override | ||
void initState() { | ||
super.initState(); | ||
Timer.periodic( | ||
const Duration(seconds: 1), | ||
(timer) { | ||
_visible.value = !_visible.value; | ||
}, | ||
); | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Center( | ||
child: Obx( | ||
() => AnimatedOpacity( | ||
opacity: _visible.value ? 1.0 : 0.0, | ||
duration: const Duration(seconds: 1), | ||
child: Icon( | ||
DSIcons.upload_outline, | ||
color: widget.color, | ||
size: widget.size, | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} |
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
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
Oops, something went wrong.