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:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user