Category "dart"

How to print a message in the console between the times form 9.00 AM to 16.30 PM in Flutter?

I want to print a message in the console every hour between the times from 9.00 AM to 16.30 PM using flutter.

Flutter Webview two way communication with Javascript

I have an html file that I am loading in Flutter webview using flutter_webview_plugin. I am using evalJavascript to call function in my javascript code, meaning

Flutter: Add custom color to existing theme

I am using Flutters built-in themes like this: return MaterialApp( theme: ThemeData.light().copyWith( primaryColor: const Color(0xFF5E975

Converting DateTime to time ago in Dart/Flutter

The question is how to format a Dart DateTime as a string stating the time elapsed similar to the way you see times displayed on Stack Overflow. Is there any b

Flutter DataTable - Tap on row

I am using Flutter DataTables to display list of items in cart. Now I want to edit the quantity of any selected row. Is there a way to get the information of th

How to find IP address using multicast_dns in flutter/dart?

I am writing a flutter application. To make life easier for end users I decided to find services running on a Raspberry Pi. Avahi is running and working. I can

How to give Flutter SDK Path in Android Studio on Mac os, How to update Flutter SDK path in MACOS?

I have installed the Android studio and the plugin's DART,FLUTTER to kickstart the flutter but as i am not able to give path of sdk while creating my very first

How can I get the size of the Text widget in Flutter

I've painted a shape for the background of my content of Text. I want the background autoscale the Text, even the softWrap being true. So, I need to get the

How to change ListTile data with mobx without rebuilding the whole page #Flutter

I am learning the Flutter state management with mobx, and I want to change the context of the dynamic listtile without rebuilding the whole page, I tried observ

How to set a default value for an object in json serialisable?

I want to set a default value for AvailableService. It straight forward enough with primitives. How would I do it with a custom Object class Submenu extends Equ

I cannot convert resized Image object to Base64 string in Dart

I want to resize Image received form imagepicker in Flutter and send it to database in base64 format. import 'package:flutter/material.dart'; import 'package:ht

Is there a way to load async data on InitState method?

I'm a looking for a way to load async data on InitState method, I need some data before build method runs. I'm using a GoogleAuth code, and I need to execute bu

Why loadInitTopStory method called after calling loaded state in flutter?

HackerNewsLoadedState is called before HackerNewsLoadingState and it loads all data from API but does not integrate to _topStories list as well as store data to

Flutter CachedNetworkImage errors: (CacheManager: Failed to download file) and (SocketException or HttpException)

I'm using the cached_network_image library. If I set it up like this: void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Wi

No Material widget found which widget is inside of Scaffold

The following assertion was thrown building IconButton(Icon, padding: EdgeInsets.all(8.0), dirty): No Material widget found. But you'll see from the code below

Is there any texteditor that I can also insert images in the middle of texts in Flutter?

I would like to make a blog app by flutter in which people will write posts with text and picture. I learned how to make the form that image and text are separa

Flutter textfield that auto expands when text is entered and then starts scrolling the text when a certain height is reached

I've tried many configurations of the Flutter TextField but can't figure out how to build this one. I'm looking for a textfield that is a single line initially

How to hide one side of the border of a TextField, in Flutter?

I am using the TextField widget, and I want to hide the left side border, as shown here: TextField( decoration: new InputDecoration( border: new Outlin

How i can make Flutter application start when it receives background firebase message even if the screen is locked i want my app to start

I tried this code but it didn't works: package com.example.flutter_telegram import android.os.Bundle import io.flutter.app.FlutterActivity import io.flutter.pl

ListView In TabBarView In Container not scrolling dart

I have the following flutter/dart code where the listView which is inside a tabBarView and also inside a container isn't scrollable Container( height: MediaQu