You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Remove widget" is not available when it's from a library imported with an alias #4169
When a library is imported with an alias (ex: import 'package:flutter/material.dart' as material;), the option "Remove widget" is not available on the widget from this library (ex: material.Center()).
To Reproduce
Steps to reproduce the behavior:
Copy this code
import'package:flutter/material.dart';
import'package:flutter/material.dart'as material;
classMyWidgetextendsStatelessWidget {
constMyWidget({Key? key}) :super(key: key);
// This widget is the root of your application.@overrideWidgetbuild(BuildContext context) {
returnconstCenter(
child: material.Center(
child:Text('Flutter'),
),
);
}
}
Fixed by dart-lang/sdk@3e9a99d. The change is in the Dart SDK, so the fix will show up with a future SDK release (rather than a VS Code extension release).
Activity
[analysis_server] Handle prefixed Flutter widget creation expressions…
DanTup commentedon Sep 22, 2022
Fixed by dart-lang/sdk@3e9a99d. The change is in the Dart SDK, so the fix will show up with a future SDK release (rather than a VS Code extension release).