chore+fix+feat: Apply dart fixes after upgrade to flutter 3.10, add permission checks, make most api calls work again

This commit is contained in:
Anton Stubenbord
2023-05-12 00:16:30 +02:00
parent c8ff261fc7
commit 39342eecf1
114 changed files with 546 additions and 685 deletions

View File

@@ -80,7 +80,7 @@ class _ScanState extends State<Scan> {
return Align(
alignment: Alignment.bottomCenter,
child: FloatingActionButton(
child: Icon(Icons.check),
child: const Icon(Icons.check),
onPressed: () async {
if (croppedImagePath == null) {
return _processImage(imagePath!, edgeDetectionResult!);
@@ -101,8 +101,8 @@ class _ScanState extends State<Scan> {
children: [
FloatingActionButton(
foregroundColor: Colors.white,
child: Icon(Icons.camera_alt),
onPressed: onTakePictureButtonPressed,
child: const Icon(Icons.camera_alt),
),
],
);
@@ -167,7 +167,7 @@ class _ScanState extends State<Scan> {
Padding _getBottomBar() {
return Padding(
padding: EdgeInsets.only(bottom: 32),
padding: const EdgeInsets.only(bottom: 32),
child: Align(alignment: Alignment.bottomCenter, child: _getButtonRow()),
);
}