1
0
mirror of https://github.com/go-vikunja/app synced 2024-06-02 18:49:47 +00:00

commented out unimplemented vikunja api, removed unused buttonTheme

This commit is contained in:
Paul Nettleton 2022-08-04 18:03:29 -05:00
parent 1083ad6811
commit 1d6a9eb777
3 changed files with 4 additions and 13 deletions

View File

@ -20,13 +20,14 @@ class BucketAPIService extends APIService implements BucketService {
.delete('/lists/$listId/buckets/$bucketId');
}
/* Not implemented in the Vikunja API
@override
Future<Bucket> get(int listId, int bucketId) {
// Might not exist in the API, it isn't in the docs
return client
.get('/lists/$listId/buckets/$bucketId')
.then((response) => Bucket.fromJSON(response.body));
}
*/
@override
Future<Response> getAllByList(int listId,

View File

@ -115,7 +115,8 @@ abstract class TaskService {
}
abstract class BucketService {
Future<Bucket> get(int listId, int bucketId);
// Not implemented in the Vikunja API
// Future<Bucket> get(int listId, int bucketId);
Future<Bucket> update(Bucket bucket);
Future delete(int listId, int bucketId);
Future<Bucket> add(int listId, Bucket bucket);

View File

@ -19,17 +19,6 @@ ThemeData _buildVikunjaTheme(ThemeData base) {
floatingActionButtonTheme: base.floatingActionButtonTheme.copyWith(
foregroundColor: vWhite,
),
buttonTheme: base.buttonTheme.copyWith(
buttonColor: vPrimary,
textTheme: ButtonTextTheme.normal,
colorScheme: base.buttonTheme.colorScheme.copyWith(
// Why does this not work?
// ButtonTheme seems to be obsolete see: https://api.flutter.dev/flutter/material/ButtonThemeData-class.html
onSurface: vWhite,
onSecondary: vWhite,
background: vBlue,
),
),
textTheme: base.textTheme.copyWith(
// headline: base.textTheme.headline.copyWith(
// fontFamily: 'Quicksand',