1
0
mirror of https://github.com/go-vikunja/app synced 2025-06-19 19:52:48 +00:00

chore: dart format

This commit is contained in:
2024-09-13 14:52:23 +02:00
parent b2dcb0fea1
commit e3be9a2f01
3 changed files with 12 additions and 10 deletions

View File

@ -221,8 +221,8 @@ class Client {
Response? _handleResponse(http.Response response) {
_handleResponseErrors(response);
return Response(
_decoder.convert(utf8.decode(response.bodyBytes)), response.statusCode, response.headers);
return Response(_decoder.convert(utf8.decode(response.bodyBytes)),
response.statusCode, response.headers);
}
}

View File

@ -151,13 +151,14 @@ class _ListPageState extends State<ListPage> {
],
),
body: RefreshIndicator(onRefresh: () => _loadList(), child: body),
floatingActionButton: _project.views[_viewIndex].viewKind == "kanban" || _project.id < 0
? null
: Builder(
builder: (context) => FloatingActionButton(
onPressed: () => _addItemDialog(context),
child: Icon(Icons.add)),
),
floatingActionButton:
_project.views[_viewIndex].viewKind == "kanban" || _project.id < 0
? null
: Builder(
builder: (context) => FloatingActionButton(
onPressed: () => _addItemDialog(context),
child: Icon(Icons.add)),
),
bottomNavigationBar: _project.views.length >= 2
? BottomNavigationBar(
type: BottomNavigationBarType.fixed,

View File

@ -152,7 +152,8 @@ class ProjectProvider with ChangeNotifier {
}
if (_tasks.isNotEmpty) _tasks.insert(0, task);
if (_buckets.isNotEmpty) {
final Bucket? bucket = _buckets.where((b) => task.bucketId == b.id).firstOrNull;
final Bucket? bucket =
_buckets.where((b) => task.bucketId == b.id).firstOrNull;
if (bucket != null) bucket.tasks.add(task);
}
pageStatus = PageStatus.success;