Skip to content

Commit

Permalink
fix(remove-take-picture-pwa): remove take picture on pwa (#1258)
Browse files Browse the repository at this point in the history
* fix(remove-take-picture-pwa): remove take picture on pwa

* fix(remove-take-picture-pwa): remove take picture on pwa
  • Loading branch information
PriscilliaAmmeux authored Jan 29, 2024
1 parent dae2554 commit 2f37c1b
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,14 @@ class AvatarModalState extends ConsumerState<AvatarModal> {
Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Button.secondary(
text: tr('takePicture').toUpperCase(),
onPressed: () => pickImage(ImageSource.camera),
),
//check if the app is running on the web
if (!kIsWeb)
Button.secondary(
text: tr('takePicture').toUpperCase(),
onPressed: () {
pickImage(ImageSource.camera);
},
),
const SizedBox(height: 10),
kIsWeb
? const SizedBox.shrink()
Expand Down

0 comments on commit 2f37c1b

Please sign in to comment.