iamabhishek229313 / tinder_clone

For learning .
211 stars 83 forks source link

compile failure on android #3

Open gsj0nes opened 1 year ago

gsj0nes commented 1 year ago

Hi, wanted to test your app to learn more about flutter and dart. I ran the code on emulator android device and returned the following, have you seen this before when running as android app?

Launching lib/main.dart on sdk gphone64 x86 64 in debug mode... lib/main.dart:1 Checking the license for package Android SDK Build-Tools 28.0.3 in /Users/Scott/Library/Android/sdk/licenses License for package Android SDK Build-Tools 28.0.3 accepted. Preparing "Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)". "Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)" ready. Installing Android SDK Build-Tools 28.0.3 in /Users/Scott/Library/Android/sdk/build-tools/28.0.3 "Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)" complete. "Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)" finished. Checking the license for package Android SDK Platform 28 in /Users/Scott/Library/Android/sdk/licenses License for package Android SDK Platform 28 accepted. Preparing "Install Android SDK Platform 28 (revision: 6)". "Install Android SDK Platform 28 (revision: 6)" ready. Installing Android SDK Platform 28 in /Users/Scott/Library/Android/sdk/platforms/android-28 "Install Android SDK Platform 28 (revision: 6)" complete. "Install Android SDK Platform 28 (revision: 6)" finished. Error: Couldn't find constructor 'RaisedButton'. lib/Screens/LoginScreen.dart:69 child: new RaisedButton( ^^^^^^^^^^^^ : Error: Couldn't find constructor 'RaisedButton'. lib/Screens/LoginScreen.dart:97 child: new RaisedButton( ^^^^^^^^^^^^ 3 FAILURE: Build failed with an exception.

gsj0nes commented 1 year ago

I think it's because RaisedButton() is deprecated now, I think replaced by ElevatedButton() -- however the parameters shape, color, and elevation now fail also / don't look like those are named types...So probably need to research how to get those bits of code working with the new function ElevatedButton(), what do you think?