mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 09:28:41 +00:00
linter issues
This commit is contained in:
parent
9d563793c7
commit
4914df5610
4 changed files with 195 additions and 200 deletions
|
|
@ -40,7 +40,7 @@ class _ArchivedChatsViewState extends State<ArchivedChatsView> {
|
|||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text("Archivierte Chats"),
|
||||
title: const Text('Archivierte Chats'),
|
||||
),
|
||||
body: ListView(
|
||||
children: _groupsArchived.map((group) {
|
||||
|
|
|
|||
|
|
@ -105,8 +105,7 @@ class _ChatListViewState extends State<ChatListView> {
|
|||
Widget build(BuildContext context) {
|
||||
final isConnected = context.watch<CustomChangeProvider>().isConnected;
|
||||
final planId = context.watch<CustomChangeProvider>().plan;
|
||||
return Container(
|
||||
child: Scaffold(
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Row(
|
||||
children: [
|
||||
|
|
@ -155,8 +154,7 @@ class _ChatListViewState extends State<ChatListView> {
|
|||
style: TextStyle(
|
||||
fontSize: 10,
|
||||
fontWeight: FontWeight.bold,
|
||||
color:
|
||||
isDarkMode(context) ? Colors.black : Colors.white,
|
||||
color: isDarkMode(context) ? Colors.black : Colors.white,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
@ -213,7 +211,6 @@ class _ChatListViewState extends State<ChatListView> {
|
|||
child: isConnected ? Container() : const ConnectionInfo(),
|
||||
),
|
||||
Positioned.fill(
|
||||
child: Container(
|
||||
child: RefreshIndicator(
|
||||
onRefresh: () async {
|
||||
await apiService.close(() {});
|
||||
|
|
@ -232,13 +229,13 @@ class _ChatListViewState extends State<ChatListView> {
|
|||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) =>
|
||||
const AddNewUserView(),
|
||||
builder: (context) => const AddNewUserView(),
|
||||
),
|
||||
);
|
||||
},
|
||||
label: Text(
|
||||
context.lang.chatListViewSearchUserNameBtn),
|
||||
context.lang.chatListViewSearchUserNameBtn,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
|
|
@ -255,16 +252,16 @@ class _ChatListViewState extends State<ChatListView> {
|
|||
if (_groupsArchived.isEmpty) return Container();
|
||||
return ListTile(
|
||||
title: Text(
|
||||
"Archivierte Chats (${_groupsArchived.length})",
|
||||
'Archivierte Chats (${_groupsArchived.length})',
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(fontSize: 13),
|
||||
style: const TextStyle(fontSize: 13),
|
||||
),
|
||||
onTap: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) {
|
||||
return ArchivedChatsView();
|
||||
return const ArchivedChatsView();
|
||||
},
|
||||
),
|
||||
);
|
||||
|
|
@ -282,8 +279,7 @@ class _ChatListViewState extends State<ChatListView> {
|
|||
|
||||
// If there are pinned users, account for the Divider
|
||||
var adjustedIndex = index - _groupsPinned.length;
|
||||
if (_groupsPinned.isNotEmpty &&
|
||||
adjustedIndex == 0) {
|
||||
if (_groupsPinned.isNotEmpty && adjustedIndex == 0) {
|
||||
return const Divider();
|
||||
}
|
||||
|
||||
|
|
@ -295,12 +291,13 @@ class _ChatListViewState extends State<ChatListView> {
|
|||
adjustedIndex,
|
||||
);
|
||||
return GroupListItem(
|
||||
key: ValueKey(group.groupId), group: group);
|
||||
key: ValueKey(group.groupId),
|
||||
group: group,
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
floatingActionButton: Padding(
|
||||
|
|
@ -319,7 +316,6 @@ class _ChatListViewState extends State<ChatListView> {
|
|||
child: const FaIcon(FontAwesomeIcons.penToSquare),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import 'dart:async';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
import 'package:mutex/mutex.dart';
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ class _ContextMenuState extends State<ContextMenu> {
|
|||
leading: _getIcon(item.icon),
|
||||
),
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
position: RelativeRect.fromRect(
|
||||
_tapPosition! & const Size(40, 40),
|
||||
|
|
|
|||
Loading…
Reference in a new issue