style: ButtonStyle.black
-
-
jp2020Participant3 years, 9 months ago #4185
Problem with ButtonStyle.black
The following message is appearing in the login.dart file in the line 163:
The name ‘ButtonStyle’ is defined in the libraries ‘package:apple_sign_in/apple_sign_in_button.dart (via package:apple_sign_in/apple_sign_in.dart)’ and ‘package:flutter/src/material/button_style.dart (via package:flutter/material.dart)’. Try using ‘as prefix’ for one of the import directives, or hiding the name from all but one of the imports.
or code:
{
“resource”: “/C:/Users/jimyp/OneDrive/Desktop/edating/e-Dating App/HookUp4U/Hookup4uCodecanyon-SourceCode/hookup4u/lib/Screens/auth/login.dart”,
“owner”: “dart”,
“code”: {
“value”: “ambiguous_import”,
“target”: {
“$mid”: 1,
“external”: “https://dart.dev/tools/diagnostic-messages#ambiguous_import”,
“path”: “/tools/diagnostic-messages”,
“scheme”: “https”,
“authority”: “dart.dev”,
“fragment”: “ambiguous_import”
}
},
“severity”: 8,
“message”: “The name ‘ButtonStyle’ is defined in the libraries ‘package:apple_sign_in/apple_sign_in_button.dart (via package:apple_sign_in/apple_sign_in.dart)’ and ‘package:flutter/src/material/button_style.dart (via package:flutter/material.dart)’.\nTry using ‘as prefix’ for one of the import directives, or hiding the name from all but one of the imports.”,
“source”: “dart”,
“startLineNumber”: 163,
“startColumn”: 34,
“endLineNumber”: 163,
“endColumn”: 45,
“tags”: []
}I can’t run the app, how can I solve this?
I’m using VScode
-
You must be logged in to reply to this topic.