skip to Main Content

Android Studio – Error: The method 'FlatButton' isn't defined for the class 'PlatformButton'

im getting these errors and dont know how to fix them. ../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_platform_widgets-1.20.0/lib/src/platform_button.dart:269:14: Error: The method 'FlatButton' isn't defined for the class 'PlatformButton'. - 'PlatformButton' is from 'package:flutter_platform_widgets/src/platform_button.dart' ('../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_platform_widgets-1.20.0/lib/src/platform_button.dart'). Try correcting the name to the name of an existing method, or…

VIEW QUESTION

Android Studio – ROOM Dao ERROR: Not Sure How to handle insert method's return type & Not Sure how to handle delete method's return type

I am giving the classes whatever I created and ,and where the error is showing. I am unable to understand the error. DAO package com.example.grocerylist import androidx.lifecycle.LiveData import androidx.room.* @Dao interface GroceryDao { @Insert(onConflict = OnConflictStrategy.REPLACE) suspend fun insert(item: GroceryItems)…

VIEW QUESTION
Back To Top
Search