Skip to main content

Posts

Showing posts from December, 2024

Flutter Interview Questions

 If I use counter not within a class & used in multiple screen then It will be part of app state or not give me ans ChatGPT said: ChatGPT If you use a counter variable not within a class (i.e., as a global variable ) and access it across multiple screens, it is not considered part of the app state in a formal sense, unless you are actively managing the state using a state management solution.

Make Recipe App in 5 Minute using AI

Make Recipe App in 5 Minute using AI Step 1 : Go to chatgpt.com, write prompt "Make an Recipe App in flutter" then chatgpt will give you code in flutter.  Step 2 : Create flutter project and copy code from chatgpt and paste in  main.dart  import 'package:flutter/material.dart' ; void main () {   runApp ( RecipeApp ()); } class RecipeApp extends StatelessWidget {   @override   Widget build ( BuildContext context ) {     return MaterialApp (       title : 'Recipe App' ,       theme : ThemeData (         primarySwatch : Colors . green ,       ),       home : RecipeListScreen (),     );   } } class RecipeListScreen extends StatelessWidget {   final List < Recipe > recipes = [     Recipe (         title : 'Spaghetti Bolognese' ,         description : 'A classic Italian pasta ...