refactor: Enable more strict lints
This commit is contained in:
parent
f797bce8d0
commit
28af7bb0c7
65 changed files with 170 additions and 146 deletions
|
|
@ -33,7 +33,7 @@ class NewPrivateChatController extends State<NewPrivateChat> {
|
|||
|
||||
static const Duration _coolDown = Duration(milliseconds: 500);
|
||||
|
||||
void searchUsers([String? input]) async {
|
||||
Future<void> searchUsers([String? input]) async {
|
||||
final searchTerm = input ?? controller.text;
|
||||
if (searchTerm.isEmpty) {
|
||||
_searchCoolDown?.cancel();
|
||||
|
|
@ -68,7 +68,7 @@ class NewPrivateChatController extends State<NewPrivateChat> {
|
|||
|
||||
void inviteAction() => FluffyShare.shareInviteLink(context);
|
||||
|
||||
void openScannerAction() async {
|
||||
Future<void> openScannerAction() async {
|
||||
if (PlatformInfos.isAndroid) {
|
||||
final info = await DeviceInfoPlugin().androidInfo;
|
||||
if (info.version.sdkInt < 21) {
|
||||
|
|
@ -88,7 +88,7 @@ class NewPrivateChatController extends State<NewPrivateChat> {
|
|||
);
|
||||
}
|
||||
|
||||
void copyUserId() async {
|
||||
Future<void> copyUserId() async {
|
||||
await Clipboard.setData(
|
||||
ClipboardData(text: Matrix.of(context).client.userID!),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue