-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serverSomething to be fixed in the Dart analysis serveris bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become availableSomething that requires changes in the Dart/Flutter SDK to ship before it will become available
Milestone
Description
Describe the bug
When extract locale variable, can't name with same name of parameter
To Reproduce
Steps to reproduce the behavior:
- With this code:
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(),
),
);
}
}- Extract locale variable for
AppBar() - The variable is
appBar2or with prompt if I setappBar, I have this errorThe name 'appBar' is already used in the scope.
Expected behavior
I want name variable appBar
Please complete the following information:
- Operating System and version: macOS 14.0
- VS Code version: 1.83.0
- Dart extension version: 3.74.0
- Dart/Flutter SDK version: Dart 3.1.3/Fluttter 3.13.6
Metadata
Metadata
Assignees
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serverSomething to be fixed in the Dart analysis serveris bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become availableSomething that requires changes in the Dart/Flutter SDK to ship before it will become available