Skip to content

Software Development at Program Tom LTD

Place for coding, programming, development and software in general.

Menu
  • Blog
  • PDF Booklets
  • Dev Utils & Content
  • Java Spring Boot Or Web Apps
  • English
    • български
    • English
    • Español
    • Português
    • हिन्दी
    • Русский
    • Deutsch
    • Français
    • Italiano
    • العربية
  • About Us
Menu

Category: Flutter

How to Style Flutter ElevatedButton shadow

How to Style Flutter ElevatedButton shadow

Posted on August 19, 2025 by Toma Velev

Here is How to Style Flutter ElevatedButton shadow – or – to add a 1-pixel border with color rgba(223, 220, 211, 1) (Color.fromRGBO(223, 220, 211, 1) in Flutter), here’s how to update both approaches: ✅ Full Control (Recommended): With Container + BoxDecoration Container( decoration: BoxDecoration( color: Colors.blue, // Button background color borderRadius: BorderRadius.circular(8), border: Border.all(…

Read more
flutter_email_sender I get PlatformException- not_available, No email clients found

Flutter Email Sender not_available – No email clients found

Posted on August 19, 2025 by Toma Velev

The Flutter Email Sender – plugin throws the PlatformException(not_available, No email clients found!) error when it can’t find a default email client installed on the user’s device. This is especially common on Android devices where: No email app is installed (e.g., Gmail, Outlook). The app is not properly registered as an email handler. ✅ Workarounds…

Read more
Detect Flutter App Background

Detect Flutter App Background

Posted on August 18, 2025 by Toma Velev

To detect if a Flutter app is in the background, you can use the WidgetsBindingObserver mixin in your StatefulWidget. Flutter provides AppLifecycleState to notify you when the app state changes — such as when it moves to the background, foreground, inactive, or is paused. ✅ Step-by-step Example: import ‘package:flutter/material.dart’; class MyHomePage extends StatefulWidget { @override…

Read more
In Flutter How to round corners of an Image

In Flutter How to round corners of an Image

Posted on August 18, 2025August 18, 2025 by Toma Velev

To round the corners of an Image.asset in Flutter, you can use a ClipRRect widget to apply a border radius, which clips the image into a rounded shape. Here’s a concise example: ClipRRect( borderRadius: BorderRadius.circular(16.0), // Adjust the radius for desired roundness child: Image.asset( ‘assets/image.jpg’, // Path to your image width: 100, height: 100, fit:…

Read more
How to make Flutter ShowDialog to Center the Popup

How to make Flutter ShowDialog to Center the Popup

Posted on August 17, 2025 by Toma Velev

In Flutter, the default showDialog already centers the popup, but by default, a Dialog or AlertDialog tries to take a fixed width (on larger screens) and can stretch vertically if your content doesn’t constrain itself. If you want it perfectly centered and wrapping its content (no extra width/height), you should: Wrap your dialog content in…

Read more
Task every minute in BLoC

Task every minute in BLoC

Posted on August 17, 2025 by Toma Velev

To run a task every minute in a Flutter app and manage it using BLoC, you can use a Timer.periodic and trigger BLoC events from it. Here’s a complete step-by-step setup: ✅ Step-by-Step Implementation 1. Event Class Define an event that your BLoC will respond to every minute. abstract class TimerEvent {} class TickEvent extends…

Read more
Modify SVG color Flutter

Modify SVG color Flutter

Posted on August 17, 2025 by Toma Velev

To change the color of the non-white parts of an SVG in Flutter using flutter_svg, you need to understand how SVG rendering works and apply color filters or replace fill attributes directly. ✅ Best Approach: Use colorFilter or replace colors in the SVG ✅ Method 1: Use colorFilter to tint non-white parts SvgPicture.asset( ‘assets/your_image.svg’, colorFilter:…

Read more
Simulating SocketException in Dio

Simulating SocketException in Dio

Posted on August 17, 2025 by Toma Velev

A SocketException in Flutter/Dart (especially when using Dio) usually means the app couldn’t reach the backend due to network issues — e.g., server down, no internet, DNS fail, firewall block, etc. To test your UI’s error-handling, you can deliberately simulate these conditions during development. Here are several approaches ranked from easiest to most controlled: 1….

Read more
How to check if my Flutter App is Running on Ipad

How to check if my Flutter App is Running on iPad

Posted on August 17, 2025August 17, 2025 by Toma Velev

To check if your Flutter app is running on an iPad, you can use the device_info_plus package to get detailed device information and determine the device type. Step-by-step: Add dependency in your pubspec.yaml: dependencies: device_info_plus: ^10.1.0 # Use latest version Import and use it in your Dart code: import ‘package:device_info_plus/device_info_plus.dart’; import ‘dart:io’; Future<bool> isRunningOniPad() async…

Read more
Batch Push Notifications FCM

Batch Push Notifications FCM

Posted on August 17, 2025 by Toma Velev

To batch send push notifications to users using Firebase Cloud Messaging (FCM), you have several options depending on your exact needs: ✅ 1. Batch Sending via FCM Device Group Messaging Use this if you want to send a message to multiple devices that belong to a single user (device group). Example Request (HTTP v1 API):…

Read more

Posts pagination

  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • …
  • 26
  • Next
  • Feature Flags – Enable Functionality from the BackEnd
  • Integrating xAI Grok API with Spring Boot
  • How to Progresively Integrate AI
  • What is an AI Agent
  • Flutter image scaling

Categories

  • Apps (22)
  • ChatGPT (23)
  • Choosing a Framework (38)
  • Flutter (256)
  • Graphical User Interface (14)
  • Marketing (116)
  • Software Development (281)
  • Spring (44)
  • StartUp (22)
  • Uncategorized (14)
  • Uncategorized (4)
  • Vaadin (14)

Tags

Algorithms (9) crypto (29) flutterdev (39) General (86) Java (7) QR & Bar Codes (3) Software Dev Choices (33) Spring Boot (1) standards (1) Theme (3) User Authentication & Authorization (9) User Experience (10) Utilities (19) WordPress (11)

Product categories

  • All Technologies (84)
    • Flutter Apps (24)
    • GPT (4)
    • Java (38)
    • Native Android (3)
    • PHP (9)
    • Spring (Boot) / Quarkus (35)
    • Utils (15)
    • Vaadin 24+ (27)
    • Vaadin 8 (1)
  • Apps (18)
    • Employees DB (1)
    • Notes (6)
    • Personal Budget (1)
    • Recipes Book (1)
    • Stuff Organizer (1)
    • To-Do (2)
  • PDF Books (3)
  • Source Code Generators (8)

Recent Posts

  • Feature Flags – Enable Functionality from the BackEnd
  • Integrating xAI Grok API with Spring Boot
  • How to Progresively Integrate AI
  • What is an AI Agent
  • Flutter image scaling

Post Categories

  • Apps (22)
  • ChatGPT (23)
  • Choosing a Framework (38)
  • Flutter (256)
  • Graphical User Interface (14)
  • Marketing (116)
  • Software Development (281)
  • Spring (44)
  • StartUp (22)
  • Uncategorized (14)
  • Uncategorized (4)
  • Vaadin (14)