Relative Content

Tag Archive for flutter

How to use enableEdgeToEdge in flutter main activity

package com.example.quran import android.os.Bundle import io.flutter.embedding.android.FlutterActivity import androidx.activity.enableEdgeToEdge class MainActivity: FlutterActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState); enableEdgeToEdge() } } why i can’t use that enableEdgeToEdge in flutter? i get red error Unresolved reference. None of the following candidates is applicable because of a receiver type mismatch: @JvmName(…) @JvmOverloads() fun @receiver:JvmName(…) @receiver:JvmOverloads() ComponentActivity. enableEdgeToEdge(statusBarStyle: […]

How to show product after updating it in other page using local state management?

In Flutter and using a local state management, how can i show product in ShowProduct Page after updateing it in Update Product. kindly be noted that i use custom widgets for custom Grid View, Custom Card, Custom Image Card Btn and others. i print the updating results successfully in the console but i do not know why it did not effect the show products. Please find below the update product and the show product codes: