To automate entering data in a browser where inputs vary (like incrementing integers), you can use a Browser Automation like Selenium and I prefer implementing it in Java. 🥇 Best Overall (Flexible and Powerful): Playwright or Selenium Languages: Python, JavaScript, Java, C# Best for: Full browser automation, dynamic form filling, handling modern websites (SPAs, React,…
In Flutter BLoC why does an emit of new freezed state does not trigger rebuild
In a Flutter BLoC setup using Freezed for immutable state classes, an emit() of a new Freezed state might not trigger a rebuild if: 🔁 1. The new state is considered equal to the previous one Freezed implements == and hashCode based on all fields of the class. So if you emit a new instance…
What are the options for Map Providers in Flutter
In Flutter, several map providers are available for integrating maps into your app. Here’s an overview of the most popular ones: 🔹 1. Google Maps for Flutter Plugin: google_maps_flutter Pros: Official support by Google. Rich features: markers, polygons, polylines, camera control. Wide community support. Cons: Requires an API key and billing setup. Not fully open…
How to make dart double precise to some Fractional Part
In Dart, to make a double precise to a specific number of fractional digits, you typically use toStringAsFixed() for display or rounding purposes, or use mathematical rounding for calculations. 1. Rounding for Display Use .toStringAsFixed(n) to get a string with n digits after the decimal: double value = 3.14159265; String roundedString = value.toStringAsFixed(2); // “3.14”…
How to detect what Elements in a ListView in Flutter are Visible
To detect which Elements in a ListView are currently Visible in Flutter, you can use the VisibilityDetector package or the ScrollablePositionedList package. Here’s how to do it with both approaches: ✅ Option 1: Using VisibilityDetector (More General Purpose) Add the dependency: dependencies: visibility_detector: ^0.4.0 Wrap each item in the list with VisibilityDetector: import ‘package:flutter/material.dart’; import…
Flutter WebView File Upload
Unfortunatly, at the time of writing this article there is an issue with file upload (e.g., <input type=”file”>) in a Flutter Android WebView with the webview_flutter package. To enable it you’ll need to do some native Android integration, because WebView file chooser is not supported out-of-the-box by webview_flutter. ✅ Steps Summary Use webview_flutter version 4.0.7+…
Extra Coding Productivity from First Principles of Physics
Apple M-Series, Migrating from HDD to SSD and from Windows to Linux are some of the significant strategies that impact on Coding Productivity, particularly in terms of compilation times, project indexing, builds, and general responsiveness. 🔄 HDD to SSD Migration Improvements: Faster project load times – IDEs like IntelliJ, VSCode, Android Studio, etc., will open…
How to Increase Software Development & Coding Productivity
Here is how to increase productivity, speed of delivery of functionalities, reduce errors, and improve flow of Software Development & Coding. Several of the tips here come from practice and experience and not from Chat witb GPTt. 🤖 1. Use LLMs as On-Demand Coding Assistants GitHub Copilot / CodeWhisperer / Cody (Sourcegraph): Inline suggestions, boilerplate…
How to Generate an Excel File and Download it in Vaadin Web App
To generate and download an Excel file in a Vaadin web application (e.g., Vaadin 23+ with Java backend), you can use Apache POI to create the Excel file and Vaadin’s StreamResource to serve it for download. ✅ Steps: Add Apache POI to your pom.xml: <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>5.4.1</version> </dependency> Create a Vaadin download button that…
Firebase Messaging – on Background Message
In Flutter, particularly when using firebase_messaging, the FirebaseMessaging -> on Background Message -> handler cannot be run inside a custom Zone in the traditional sense like how you might wrap code in runZonedGuarded. Here’s why and what you can (and cannot) do: 📌 Why it doesn’t run in a custom Zone FirebaseMessaging.onBackgroundMessage is executed in…