Here is an example of using GridView Builder in Flutter. import ‘package:flutter/material.dart’; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: GridViewExample(), ); } } class GridViewExample extends StatefulWidget { @override _GridViewExampleState createState() => _GridViewExampleState(); } class _GridViewExampleState extends State<GridViewExample> { final List<int> numbers = List.generate(100,…
Author: Toma Velev
How to Visualize Listview inside Listview in Flutter
Visualizing a ListView inside another ListView can be achieved in Flutter using various techniques, including nested lists, expandable lists, or even using a package specifically designed for complex lists. Here are some common approaches: 1. Using Nested Lists (Without Packages) One of the simplest ways to achieve this is by nesting lists within your model…
What other usages you know about public private cryptography
Public private cryptography, also known as asymmetric cryptography, has revolutionized the way we secure digital transactions and protect sensitive information online. This powerful technology has numerous real-world applications beyond just secure web browsing. General Types of Applications Public-private cryptography is used in a wide range of applications, including: Digital Signatures: Verify the authenticity of messages…
Get a Flutter App to Production
Taking a Flutter app to production involves several preparatory technical tasks to ensure your app is reliable, performant, and ready for release. Here’s a checklist of key steps across multiple areas—code, build, testing, configuration, and deployment: ✅ 1. Final Code Clean-Up Remove print/debug statements. Use proper logging (dart:developer or logger package). Refactor spaghetti or duplicated…
Firebase Dynamic Links Deprecation – migrating out to Java
When migrating away from Firebase Dynamic Links, you’ll need to reimplement several backend functionalities – because of the Deprecation – that Firebase previously handled for you automatically. Here’s a detailed breakdown of what Firebase Dynamic Links provides on the backend, and what you’ll need to replace: 🔧 Firebase Dynamic Links — Backend Functionalities Smart Link…
How to Rotate a Widget in Flutter?
To make an image or other Widget Rotate in Flutter, you can use the RotationTransition widget together with an AnimationController. Here’s a complete example: ✅ Example: Rotating an Image Continuously import ‘package:flutter/material.dart’; void main() => runApp(RotatingImageApp()); class RotatingImageApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: RotatingImage(), ); } } class RotatingImage…
In Flutter how to programmatically trigger on back pressed so it goes through PopScope
In Flutter, to programmatically trigger the behavior of the back button (e.g. Android’s system back) and go through a PopScope, you can use the Navigator.pop(context) method in combination with how PopScope (formerly WillPopScope) handles the back navigation. ✅ Solution To simulate a back press and ensure it goes through PopScope’s onPopInvoked: PopScope( canPop: true, //…
Flutter Map Pin Limit
– Do you ask yourself – What Pin Count(objects with lat, lon) a typical Flutter App With a Map could hold in memory? Answer – It Depeneds The number of pins (objects with latitude and longitude) a typical Flutter app can hold in memory depends on: Available device memory (RAM) – mobile devices vary widely…
3 Common Google Maps features for a Flutter App
Here are 3 Common features you very often need to implement with Google Maps for a Flutter App. Visible Region from Google Maps To determine whether a specific location is visible on the screen in Google Maps Flutter, you need to calculate if that location lies within the visible region of the map camera. Here’s…
Flutter State Management – the Source of most Bugs
In this article I will talk less about the Flutter State Management Solutions, but the art of managing the State in an App is the Source of most Bugs. This may be influenced, but not entirely removed from the State Library in use to isolate business logic from the platform and the external libraries. State…