Compare commits
2 commits
50074890c0
...
8188fc61c9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8188fc61c9 | ||
|
|
ce7338db2a |
2 changed files with 12 additions and 1 deletions
|
|
@ -15,4 +15,4 @@ jobs:
|
||||||
cache: true
|
cache: true
|
||||||
- run: git config --global --add safe.directory /opt/hostedtoolcache/flutter/stable-3.35.1-x64
|
- run: git config --global --add safe.directory /opt/hostedtoolcache/flutter/stable-3.35.1-x64
|
||||||
- run: flutter build web --release --wasm --base-href /app/
|
- run: flutter build web --release --wasm --base-href /app/
|
||||||
- run: sshpass -p "${{ secrets.DEPLOY_PASSWORD }}" scp -o StrictHostKeyChecking=accept-new -rp build/web ${{ secrets.DEPLOY_USERNAME }}@${{ secrets.DEPLOY_ADDRESS }}:${{ secrets.DEPLOY_PATH }}
|
- run: sshpass -p "${{ secrets.DEPLOY_PASSWORD }}" scp -o StrictHostKeyChecking=accept-new -rp build/web/* ${{ secrets.DEPLOY_USERNAME }}@${{ secrets.DEPLOY_ADDRESS }}:${{ secrets.DEPLOY_PATH }}
|
||||||
|
|
|
||||||
|
|
@ -140,6 +140,17 @@ class _SellPageState extends State<SellPage> {
|
||||||
children: [
|
children: [
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
if (widget.viewModel.scannedBooks.isEmpty) {
|
||||||
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
|
SnackBar(
|
||||||
|
content: Text(
|
||||||
|
"La vente doit comporter au moins un livre",
|
||||||
|
),
|
||||||
|
behavior: SnackBarBehavior.floating,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (double.tryParse(
|
if (double.tryParse(
|
||||||
price.text.replaceFirst(",", "."),
|
price.text.replaceFirst(",", "."),
|
||||||
) ==
|
) ==
|
||||||
|
|
|
||||||
Reference in a new issue