Skip to content

Commit

Permalink
Merge branch 'develop' into task/938
Browse files Browse the repository at this point in the history
  • Loading branch information
jsondergaard authored Nov 16, 2023
2 parents f96f09a + b4ae4e6 commit 9d5149e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 17 deletions.
11 changes: 0 additions & 11 deletions lib/blocs/new_citizen_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,6 @@ class NewCitizenBloc extends BlocBase {
});
}

/// pushes an imagePicker screen, then sets the pictogram image,
/// to the selected image from the gallery
void takePictureWithCamera() {
ImagePicker().pickImage(source: ImageSource.camera).then((XFile? f) {
if (f != null) {
_publishImage(File(f.path));
_checkInput();
}
});
}

/// pushes an imagePicker screen, then sets the profile picture image,
/// to the selected image from the gallery
void chooseImageFromGallery() {
Expand Down
10 changes: 10 additions & 0 deletions lib/screens/show_activity_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,16 @@ class ShowActivityScreen extends StatelessWidget {
),
);
}
// Give message after stopping timer
void _showToast(String message) {
Fluttertoast.showToast(
msg: message,
gravity: ToastGravity.CENTER,
timeInSecForIosWeb: 1,
backgroundColor: Colors.black,
textColor: Colors.white,
);
}

// Give message after stopping timer
void _showToast(String message) {
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/weekplan_screen_widgets/activity_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ class ActivityCard extends StatelessWidget {
height: 0,
);
}

default:
return Container(
width: 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ class WeekplanDayColumn extends StatelessWidget {
_timerBloc[index].addHandlerToRunningModeOnce();
_timerBloc[index].initTimer();

if (activistModel.timer == null) {
if (activistModel.timer == null || activistModel.chosenActivity != null) {
_activityBloc.completeActivity();
} else {
_timerBloc[index].playTimer();
Expand Down
7 changes: 3 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ environment:
sdk: ">=3.1.2"
dependencies:
api_client:
path: ../api_client
# git:
# url: https://github.com/aau-giraf/api_client.git
# ref: task/131 #develop
git:
url: https://github.com/aau-giraf/api_client.git
ref: develop
audioplayers: ^1.1.1
auto_size_text: ^3.0.0
csv: ^5.0.1
Expand Down

0 comments on commit 9d5149e

Please sign in to comment.