Skip to content

Commit

Permalink
Fixed upload file button exception
Browse files Browse the repository at this point in the history
  • Loading branch information
vovagorodok committed Jun 26, 2024
1 parent 5ed8324 commit 65f81c7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
17 changes: 11 additions & 6 deletions lib/src/screens/upload_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -341,12 +341,17 @@ class UploadScreenState extends State<UploadScreen> {

Widget _buildUploadFileButton() => SizedBox(
height: 50,
child: Expanded(
child: FilledButton.icon(
icon: const Icon(Icons.file_open_rounded),
label: Text(tr('UploadFile')),
onPressed: _canUpload() ? _pickFile : null,
),
child: Row(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Expanded(
child: FilledButton.icon(
icon: const Icon(Icons.file_open_rounded),
label: Text(tr('UploadFile')),
onPressed: _canUpload() ? _pickFile : null,
),
),
],
),
);

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: ble_ota_app
description: Upload firmware over bluetooth.
publish_to: 'none'
version: 1.0.7+8
version: 1.0.8+9

environment:
sdk: '>=3.0.0 <4.0.0'
Expand Down

0 comments on commit 65f81c7

Please sign in to comment.