Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions examples/counter_example/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@

# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
analyzer:
exclude:
- build/**
- android/**
- ios/**
- web/**
- windows/**
- macos/**
- linux/**
include: package:flutter_lints/flutter.yaml

linter:
Expand Down
18 changes: 9 additions & 9 deletions examples/counter_example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -460,10 +460,10 @@ packages:
dependency: transitive
description:
name: matcher
sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861
sha256: "31bd099b47c10cd1aeb55146a2d46ce0277630ecef3f7dae54ad7873f36696cd"
url: "https://pub.dev"
source: hosted
version: "0.12.19"
version: "0.12.20"
material_color_utilities:
dependency: transitive
description:
Expand All @@ -476,10 +476,10 @@ packages:
dependency: transitive
description:
name: meta
sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349"
sha256: "307249ce4ff29d58a18e97f6345f539382eb9c9c29ecda628900f31de0443dd9"
url: "https://pub.dev"
source: hosted
version: "1.18.0"
version: "1.19.0"
mime:
dependency: transitive
description:
Expand Down Expand Up @@ -869,10 +869,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e"
sha256: "2a122cbe059f8b610d3a5415f42e255b6c17b1f21eee1d960f31080237fb4f11"
url: "https://pub.dev"
source: hosted
version: "0.7.11"
version: "0.7.12"
timing:
dependency: transitive
description:
Expand Down Expand Up @@ -925,10 +925,10 @@ packages:
dependency: transitive
description:
name: vector_math
sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
sha256: f36f9f3be64c6198714492bb455c11056e33e2f85d9a0b676a48301e44fdcf47
url: "https://pub.dev"
source: hosted
version: "2.2.0"
version: "2.4.2"
vm_service:
dependency: transitive
description:
Expand Down Expand Up @@ -994,5 +994,5 @@ packages:
source: hosted
version: "3.1.3"
sdks:
dart: ">=3.10.0-0 <4.0.0"
dart: ">=3.11.0-0 <4.0.0"
flutter: ">=3.35.0"
9 changes: 9 additions & 0 deletions examples/movie_app/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@

# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
analyzer:
exclude:
- build/**
- android/**
- ios/**
- web/**
- windows/**
- macos/**
- linux/**
include: package:flutter_lints/flutter.yaml

linter:
Expand Down
18 changes: 9 additions & 9 deletions examples/movie_app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -396,10 +396,10 @@ packages:
dependency: transitive
description:
name: matcher
sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861
sha256: "31bd099b47c10cd1aeb55146a2d46ce0277630ecef3f7dae54ad7873f36696cd"
url: "https://pub.dev"
source: hosted
version: "0.12.19"
version: "0.12.20"
material_color_utilities:
dependency: transitive
description:
Expand All @@ -412,10 +412,10 @@ packages:
dependency: transitive
description:
name: meta
sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349"
sha256: "307249ce4ff29d58a18e97f6345f539382eb9c9c29ecda628900f31de0443dd9"
url: "https://pub.dev"
source: hosted
version: "1.18.0"
version: "1.19.0"
mime:
dependency: transitive
description:
Expand Down Expand Up @@ -797,10 +797,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e"
sha256: "2a122cbe059f8b610d3a5415f42e255b6c17b1f21eee1d960f31080237fb4f11"
url: "https://pub.dev"
source: hosted
version: "0.7.11"
version: "0.7.12"
typed_data:
dependency: transitive
description:
Expand Down Expand Up @@ -845,10 +845,10 @@ packages:
dependency: transitive
description:
name: vector_math
sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
sha256: f36f9f3be64c6198714492bb455c11056e33e2f85d9a0b676a48301e44fdcf47
url: "https://pub.dev"
source: hosted
version: "2.2.0"
version: "2.4.2"
vm_service:
dependency: transitive
description:
Expand Down Expand Up @@ -914,5 +914,5 @@ packages:
source: hosted
version: "3.1.3"
sdks:
dart: ">=3.10.0-0 <4.0.0"
dart: ">=3.11.0-0 <4.0.0"
flutter: ">=3.35.0"
4 changes: 2 additions & 2 deletions examples/movie_app/stac/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import 'package:stac/stac_core.dart';

@StacScreen(screenName: 'home_screen')
StacWidget homeScreen() {
return StacDefaultBottomNavigationController(
return StacDefaultNavigationController(
length: 3,
child: StacScaffold(
extendBodyBehindAppBar: true,
body: StacBottomNavigationView(
body: StacNavigationView(
children: [
StacListView(
padding: StacEdgeInsets.all(0),
Expand Down
9 changes: 8 additions & 1 deletion packages/stac/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,11 @@ include: package:flutter_lints/flutter.yaml
analyzer:
exclude:
- lib/**.g.dart
- lib/**.freezed.dart
- lib/**.freezed.dart
- build/**
- android/**
- ios/**
- web/**
- windows/**
- macos/**
- linux/**
6 changes: 3 additions & 3 deletions packages/stac/lib/src/services/stac_cache_service.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:shared_preferences/shared_preferences.dart';
import 'package:stac/src/models/stac_cache.dart';
import 'package:stac/src/models/stac_artifact_type.dart';
import 'package:stac/src/models/stac_cache.dart';
import 'package:stac_logger/stac_logger.dart';

/// Service for managing cached Stac artifacts (screens, themes, etc.).
Expand Down Expand Up @@ -75,7 +75,7 @@ class StacCacheService {
cachedAt: DateTime.now(),
);

return prefs.setString(cacheKey, artifactCache.toJsonString());
return await prefs.setString(cacheKey, artifactCache.toJsonString());
} catch (e) {
return false;
}
Expand All @@ -90,7 +90,7 @@ class StacCacheService {
final prefs = await _sharedPrefs;
final cachePrefix = _getCachePrefix(artifactType);
final cacheKey = '$cachePrefix$artifactName';
return prefs.remove(cacheKey);
return await prefs.remove(cacheKey);
} catch (e) {
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/stac_cli/lib/src/exceptions/build_exception.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ class BuildException extends StacException {

/// Exception thrown when Dart to JSON conversion fails
class ConversionException extends BuildException {
const ConversionException(String message, {dynamic cause})
: super('Dart to JSON conversion failed: $message', cause: cause);
const ConversionException(String message, {super.cause})
: super('Dart to JSON conversion failed: $message');
}

/// Exception thrown when SDUI validation fails
Expand Down
2 changes: 1 addition & 1 deletion packages/stac_cli/lib/src/services/upgrade_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ class UpgradeService {
await response.drain<void>();
final nextUri = uri.resolve(redirectUrl);
_validateDownloadUri(nextUri);
return _downloadFile(nextUri.toString(), destPath);
return await _downloadFile(nextUri.toString(), destPath);
}
}

Expand Down
9 changes: 9 additions & 0 deletions packages/stac_framework/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
analyzer:
exclude:
- build/**
- android/**
- ios/**
- web/**
- windows/**
- macos/**
- linux/**
include: package:flutter_lints/flutter.yaml

# Additional information about this file can be found at
Expand Down
9 changes: 8 additions & 1 deletion packages/stac_webview/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,11 @@ include: package:flutter_lints/flutter.yaml
analyzer:
exclude:
- lib/**.g.dart
- lib/**.freezed.dart
- lib/**.freezed.dart
- build/**
- android/**
- ios/**
- web/**
- windows/**
- macos/**
- linux/**
6 changes: 6 additions & 0 deletions stac_playground/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ analyzer:
# `lib/dsl` ships as an asset bundle, so Flutter copies every example into
# build/. Without this, `dart analyze .` reports each one several times over.
- build/**
- android/**
- ios/**
- web/**
- windows/**
- macos/**
- linux/**

linter:
# The lint rules applied to this project can be customized in the
Expand Down
16 changes: 8 additions & 8 deletions stac_playground/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,10 @@ packages:
dependency: transitive
description:
name: matcher
sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861
sha256: "31bd099b47c10cd1aeb55146a2d46ce0277630ecef3f7dae54ad7873f36696cd"
url: "https://pub.dev"
source: hosted
version: "0.12.19"
version: "0.12.20"
material_color_utilities:
dependency: transitive
description:
Expand All @@ -308,10 +308,10 @@ packages:
dependency: transitive
description:
name: meta
sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349"
sha256: "307249ce4ff29d58a18e97f6345f539382eb9c9c29ecda628900f31de0443dd9"
url: "https://pub.dev"
source: hosted
version: "1.18.0"
version: "1.19.0"
mime:
dependency: transitive
description:
Expand Down Expand Up @@ -652,10 +652,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e"
sha256: "2a122cbe059f8b610d3a5415f42e255b6c17b1f21eee1d960f31080237fb4f11"
url: "https://pub.dev"
source: hosted
version: "0.7.11"
version: "0.7.12"
typed_data:
dependency: transitive
description:
Expand Down Expand Up @@ -764,10 +764,10 @@ packages:
dependency: transitive
description:
name: vector_math
sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
sha256: f36f9f3be64c6198714492bb455c11056e33e2f85d9a0b676a48301e44fdcf47
url: "https://pub.dev"
source: hosted
version: "2.2.0"
version: "2.4.2"
vm_service:
dependency: transitive
description:
Expand Down
Loading