Skip to content

Commit

Permalink
chore: dart format
Browse files Browse the repository at this point in the history
  • Loading branch information
Benimautner committed Sep 13, 2024
1 parent b2dcb0f commit e3be9a2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions lib/api/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
15 changes: 8 additions & 7 deletions lib/pages/project/project_task_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion lib/stores/project_store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e3be9a2

Please sign in to comment.