mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
chore(mobile): Apply stricter linting rules for Flutter and known issues (#30373)
This commit is contained in:
parent
9a143f0047
commit
858aeadce8
29 changed files with 50 additions and 32 deletions
|
|
@ -125,7 +125,7 @@ class TagPicker extends HookConsumerWidget {
|
|||
// Create new tag tile
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(bottom: 2.0),
|
||||
child: Container(
|
||||
child: DecoratedBox(
|
||||
decoration: BoxDecoration(
|
||||
color: isCreateSelected ? context.primaryColor : context.primaryColor.withAlpha(25),
|
||||
borderRadius: const BorderRadius.all(Radius.circular(10)),
|
||||
|
|
@ -160,7 +160,7 @@ class TagPicker extends HookConsumerWidget {
|
|||
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(bottom: 2.0),
|
||||
child: Container(
|
||||
child: DecoratedBox(
|
||||
decoration: BoxDecoration(
|
||||
color: isSelected ? context.primaryColor : context.primaryColor.withAlpha(25),
|
||||
borderRadius: borderRadius,
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ class _BorderedMapThumbnail extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
return Column(
|
||||
children: [
|
||||
Container(
|
||||
DecoratedBox(
|
||||
decoration: BoxDecoration(
|
||||
border: Border.fromBorderSide(
|
||||
BorderSide(width: 4, color: shouldHighlight ? context.colorScheme.onSurface : Colors.transparent),
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ class SyncStatusAndActions extends HookConsumerWidget {
|
|||
final documentsDir = await getApplicationDocumentsDirectory();
|
||||
final dbFile = File(path.join(documentsDir.path, 'immich.sqlite'));
|
||||
|
||||
// ignore: avoid_slow_async_io
|
||||
if (!await dbFile.exists()) {
|
||||
if (context.mounted) {
|
||||
context.scaffoldMessenger.showSnackBar(
|
||||
|
|
@ -61,6 +62,7 @@ class SyncStatusAndActions extends HookConsumerWidget {
|
|||
);
|
||||
|
||||
Future.delayed(const Duration(seconds: 30), () async {
|
||||
// ignore: avoid_slow_async_io
|
||||
if (await exportFile.exists()) {
|
||||
await exportFile.delete();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -773,7 +773,7 @@ class _DatePresetCard extends StatelessWidget {
|
|||
child: InkWell(
|
||||
onTap: onTap,
|
||||
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
||||
child: Container(
|
||||
child: DecoratedBox(
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
||||
border: Border.all(color: isSelected ? context.colorScheme.primary : Colors.transparent, width: 1),
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ class PrimaryColorSetting extends HookConsumerWidget {
|
|||
right: 0,
|
||||
top: 0,
|
||||
bottom: 0,
|
||||
child: Container(
|
||||
child: DecoratedBox(
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: const BorderRadius.all(Radius.circular(100)),
|
||||
color: Colors.grey[900]?.withValues(alpha: .4),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue