From 1d6a9eb7774325a13bb2c85ab9de609f68b38ec7 Mon Sep 17 00:00:00 2001 From: Paul Nettleton Date: Thu, 4 Aug 2022 18:03:29 -0500 Subject: [PATCH] commented out unimplemented vikunja api, removed unused buttonTheme --- lib/api/bucket_implementation.dart | 3 ++- lib/service/services.dart | 3 ++- lib/theme/theme.dart | 11 ----------- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/lib/api/bucket_implementation.dart b/lib/api/bucket_implementation.dart index d622fb4..c177fee 100644 --- a/lib/api/bucket_implementation.dart +++ b/lib/api/bucket_implementation.dart @@ -20,13 +20,14 @@ class BucketAPIService extends APIService implements BucketService { .delete('/lists/$listId/buckets/$bucketId'); } + /* Not implemented in the Vikunja API @override Future 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 getAllByList(int listId, diff --git a/lib/service/services.dart b/lib/service/services.dart index 00d8434..b839b5c 100644 --- a/lib/service/services.dart +++ b/lib/service/services.dart @@ -115,7 +115,8 @@ abstract class TaskService { } abstract class BucketService { - Future get(int listId, int bucketId); + // Not implemented in the Vikunja API + // Future get(int listId, int bucketId); Future update(Bucket bucket); Future delete(int listId, int bucketId); Future add(int listId, Bucket bucket); diff --git a/lib/theme/theme.dart b/lib/theme/theme.dart index 0f30aca..7d36991 100644 --- a/lib/theme/theme.dart +++ b/lib/theme/theme.dart @@ -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',