Visitar URL original
[flutter_tools] Support flavors and transformers for shaders by Laurie-Lin · Pull Request #181889 · flutter/flutter · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
flutter_tools: fix widget preview test for shaders
  • Loading branch information
Laurie-Lin committed Feb 4, 2026
commit a1aafe93bedbea482734c18ba843122b293d0b5c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void main() {
rootProject.replacePubspec(
rootProject.manifest.copyWith(
logger: logger,
shaders: <Uri>[Uri(host: 'Random')],
shaders: <AssetsEntry>[AssetsEntry(uri: Uri.parse('Random'))],
),
);
expect(previewManifest.shouldRegeneratePubspec(), true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,10 +378,11 @@ flutter:
RegExp('--output=.*'),
],
onRun: (List<String> args) {
final ArgResults parsedArgs = (ArgParser()
..addOption('input')
..addOption('output'))
.parse(args);
final ArgResults parsedArgs =
(ArgParser()
..addOption('input')
..addOption('output'))
.parse(args);

final File input = fileSystem.file(parsedArgs['input'] as String);
expect(input, exists);
Expand Down