Questions tagged [flutter]

0

votes
0

answer
3

Views

Cloud Data Storage across devices without Login (iCloud, CloudKit)

I do have a background as a native iOS software developer. We had a couple of apps for iPhones and iPads that used CloudKit to sync data between the same App installed on different devices of a single user. It was used for simple things like favorited items within apps that did not have any login or...
Robin7331
1

votes
0

answer
7

Views

How to receive One signal notifications in flutter

I am developing an application with flutter. There is a feature in my application(Receiving latest news) through One signal notification. When I add the dependency in my flutter project. It gives me the Error (The Android Gradle plugin supports only Kotlin Gradle plugin version 1.2.51 and higher. Pr...
Code Land
2

votes
0

answer
13

Views

Flutter keeps importing old version of Plugin for iOS

I have create a plugin which can be found at following url https://pub.dartlang.org/packages/upetch_paysquare_service#-versions-tab- I imported the plugin in separate flutter project's pubspec as follows upetch_paysquare_service: ^0.0.7 The Android part works fine. when I open the project in Xcode t...
Nudge
0

votes
1

answer
5

Views

Flutter container round 3 edge only

I want to achieve a bubble for chat like the above picture. My plan: Round 3 edge only of a container. So far, I have all 4 edge rounded. Container( child: Text( 'I want to book hotel', style: TextStyle(color: primaryColor), ), padding: EdgeInsets.fromLTRB(15.0, 10.0, 15.0, 10.0), width: 200.0, dec...
TSR
0

votes
0

answer
3

Views

Build errors on Flutter dependencies

When I add dependencies to Flutter, I occasionally get the error: Xcode build done. 0.7s Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED ** Xcode's output: ↳ === BUILD TARGET shared_preferences OF PROJECT Pods WITH CONFIGURATION Debug === The “Swift Language Version”...
iRyanBell
1

votes
1

answer
13

Views

Expanded Raisebutton flutter

I am trying to make the below two raised button fill the available width evenly. My Column: Padding( padding: const EdgeInsets.only(bottom:18.0), child: Text( 'Which language Do you prefer', style: TextStyle( color: Colors.white, ), ), ), Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, childr...
TSR
0

votes
0

answer
3

Views

How to implement this container effect in flutter?

I would like to implement this effect but idk where to start. https://uimovement.com/ui/7370/explore-recipes/ I've tried using AnimatedContainers but maybe it's a the wrong widget. I need advice or an example where to start or research.
Geordan Sanchez
0

votes
0

answer
4

Views

Update assets files content at runtime with Flutter

I am fresh with Flutter, and I was able to load the content of XML file as String from Assets folder using this method Future loadAsset() async { return await rootBundle.loadString('assets/file.xml'); } and yaml file flutter: assets: - assets/ And it just works very well. My question is: Can I updat...
Shady Boshra
0

votes
0

answer
4

Views

I want to create a flutter app with a listview

I need to create an app that looks like this Flutter design. I'm struggling to place the text where I want. This is my code so far body: Padding( padding: const EdgeInsets.all(0.1), child: new Container( child: new Center( child: new ListView( children: [ new Card(//card 1 child: new Container( colo...
Randy
2

votes
0

answer
13

Views

Sticky tabs in NestedScrollView with ListViews

The layout works as desired, except this: When I scroll on one page, the second page scrolls too. Not as much but enough to obscure the first item. I could imagine it'd have something to do with the NestedScrollView but I don't know how to go on. import 'package:flutter/material.dart'; main(){ runA...
Jakob
0

votes
0

answer
11

Views

How to use if else condition in a button - flutter

I am trying to show an alert dialog after user has pressed this button after a certain condition is met. if the text is empty it will pop a dialog however using what i tried below, it still pops up the dialog even when text is not empty after pressing button. RaisedButton( onPressed: priceController...
irongirl
0

votes
0

answer
6

Views

How to upload a image to sqlite database in flutter using image_picker dependency

Future getImage(ImageSource imageSource) async { var image = await ImagePicker.pickImage(source: imageSource); setState(() { _image = image; }); }
Shadeeka Nimesh
1

votes
0

answer
9

Views

Flutter Unable to read manifest info from app.apk

i have upgraded the flutter four days earlier and since then i am facing issue, the workspace has no errors as other collaborator's code is running fine. Error is: Error running com.xxxxxxxx.signals. Default activity not found Unable to read manifest info from F:\Projects\xxxxxxxx-mobile\xxxxxxxx-mo...
Jabir Ishaq
0

votes
1

answer
7

Views

Flutter why need new when create widget?

Padding( child: Icon(Icons.search) ); new Padding( child: new Icon(Icons.search) ); The above two pieces of code achieve the same effect, when do us need to add 'new'?
Junhan Chen
0

votes
0

answer
5

Views

If the inner swipe leads to nowhere in TabBarView, have it translate to an outer swipe in PageView

Imagine an application with 3 horizontally swiping pages, with the rightmost page containing a TabBarView which contains two widgets (we'll call them tabs) titled Green (leftmost) and Red (rightmost). I'll be calling both tabs/pages views. If I begin to swipe right (right swiping meaning the finger...
Jason Xu
0

votes
0

answer
5

Views

Flutter: Execute a function on Startup - wait for HTTP response parser to extract image URL

I am developing a Flutter app which I need to get almost everything from an API including images, colors, texts, and etc. So what I should do is to build the main structure of the app and then fill-in everything with provided information from API. It is necessary for me to make the API call (HTTP GE...
Mehdi Satei
2

votes
1

answer
54

Views

DragTarget widget is not responding

I am coding a chess game in flutter. and this is the relevant bits of my code : class Rank extends StatelessWidget { final _number; Rank(this._number); @override Widget build(BuildContext context) { var widgets = []; for (var j = 'a'.codeUnitAt(0); j print('leave'),); } } class BoardSquare extends...
Arash
3

votes
0

answer
90

Views

How to get text when I drag on a paragraph and highlight the text area as well. ? - Flutter

I am trying to make highlighter on a storyboard, so I need to highlight with colour (Yellow etc). When I drag on paragraph it should return text one by one. This is my code. Here as you can see I have created on the list _highlighterColor initially I am giving it to zero so, when I am dragging I am...
satish
0

votes
0

answer
13

Views

Flutter Fullscreen Video in Webview is not working

I am using https://github.com/pichillilorenzo/flutter_inappbrowser to display a webview in my app. The video on the website is playing but not displaying in fullscreen even when the fullscreen button is pressed. Is there a way to display a video in fullscreen in a webview?
dheeraj reddy
0

votes
0

answer
12

Views

How to create nullable variable in Dart

This is c# code create a nullable variable, I want to do this using Dart. How to do it? Nullable hotel_effect_open_date
Bhanuka Isuru
0

votes
0

answer
6

Views

Flutter issue, ios app won't open and no icon

enter image description here There's zero error, zero warning in Xcode. doctor: Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel master, v1.3.12, on Mac OS X 10.13.6 17G65, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 28.0...
Sarthak Solanki
1

votes
0

answer
7

Views

Flutter is not rebuilding same widget with different parameters

I was working with bottom navigation with similar child widgets in which only parameters are changed. The problem only happens when widgets are of StatefulWidget else there is no problem, indications in bottomnavbar is changing but not the body. child 1 child 2 result class MyHomePage extends State...
Gypsy Rider
0

votes
0

answer
17

Views

How to store list of object data in sqlite on Flutter?

How to store a list of object data in SQLite on Flutter? Json data coming with API. { 'images': [ { 'id': 10, 'name': 'img1' }, { 'id': 11, 'name': 'img2' } ] }
Bhanuka Isuru
1

votes
1

answer
4.7k

Views

Flutter - Always execute a function when the page appears

How could I make the name() function run whenever the Page1 page appeared? In the code below before going to Page2 I execute the dispose() Already inside Page2 if I click the back button or the physical button of Android the function name() is not executed, but if I click the 'go to Page1' button th...
rafaelcb21
1

votes
1

answer
918

Views

http url parameter Invalid Character Error

I have developed a REST API using feathers.js (https://feathersjs.com/). When trying to do a HTTP 'read' request in Flutter using package:http/http.dart I have encountered an error. The http.dart library is unable to correctly parse the query params I pass to the URI. The error I receive through...
kite_n_code
4

votes
2

answer
106

Views

Offsets are different onTap and OnDrag - Flutter

I have an image in which certain items are there which have starting offsets and their height and width, corresponding to each item in images I have different text, I have to drag the text and drop it to the correct position on the image,I am getting different offset while tap to particular location...
axel blaze
0

votes
0

answer
2

Views

Could not find com.android.tools.build:gradle:3.2.1

To be honest i have zero experience in mobile devolopment and am trying to learn flutter as every body telling me it's the future . but i had many errors on the ways in just installing it . what i did to install it with vs-code : installed oracle jdk8 installed android studio setup the avd and makin...
a lovely person
1

votes
1

answer
788

Views

Flutter - Dismiss a dialog after pushing to a new page

I am currently creating a todo app where if I long pressed a task tile, it will pop up a show dialog. After redirecting to the edit page, you can edit and save the changes. However, once you are done, you will be redirected to the homepage but will be welcomed with the previous dialog How do I dismi...
Happy Haris
1

votes
1

answer
545

Views

How do I perform a transaction in firebase_database in Flutter?

How do I perform an atomic read/write transaction in firebase_database in Flutter?
Luke Pighetti
1

votes
1

answer
220

Views

Disable swipe gesture when using BottomNavigationBar

How do we disable swipe on BottomNavigationBar attached to a scaffold? I could not find a way in the official docs to do so.
kaustavj
1

votes
2

answer
515

Views

Flutter sort Firebase snapshot by timestamp

I'm trying to sort snapshot by timestamp but returns original order. data structure looks like this I have two snapshot and timestamps are -1536025466539 and -1536025893015. So, I expect -1536025893015 to come first after sorted. Does anyone know how to sort correctly? Code: Map map = snapshot.dat...
Daibaku
1

votes
1

answer
133

Views

What is the '._' convention in flutter/dart? [duplicate]

This question already has an answer here: What are the semantics of _internal? 1 answer I have the following code in a flutter tutorial that discusses global state: static GlobalState instance = new GlobalState._(); GlobalState._(); What exactly is the ._ doing? Is this technically just a blank me...
Sam Drescher
0

votes
0

answer
4

Views

Firebase Password Reset - dose not force RegExp

I have an issue with Firebase's password reset. My app forces the user to type in a 'strong' password, which requires the following: Minimum of 8 Characters 1 Uppercase 1 Lowercase 1 Digit 1 Special Character I have this working fine, the issue is occurs when users reset their password through Fireb...
Jake Anderson
1

votes
2

answer
778

Views

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 the row user has tapped? Following is complete code of my DataTable: class _DataTableSampleState extends State { void _getSelectedRowInfo() {...
Zain SMJ
1

votes
1

answer
58

Views

Flutter Center Wrapped Text

In Flutter, is it possible to center text that is wrapped? I'm stuck with In effect, I want the text to wrap but still be centered.
Nate Roiger
1

votes
1

answer
241

Views

Flutter Container: cannot provide both a color and a decoration

I want to draw a border around my container and have the background be colored. Widget bodyWidget() { return Container( color: Colors.yellow, decoration: BoxDecoration( border: Border.all(color: Colors.black), ), child: Text('Flutter'), ); } But when I try this I get the error Cannot provide both a...
Suragch
1

votes
1

answer
96

Views

What is the fancy way to use SnackBar in StreamBuilder?

I'm implementing Bloc pattern for my application and I have to show SnackBar which shows error message when login is unauthenticated. But I cannot show SnackBar during building phase of widget. I looked for lots of solutions, but I couldn't found. What is the most efficient way to use this function?...
baeharam
1

votes
2

answer
75

Views

What is the difference between TextFormField and TextField?

I am new to Flutter (and Dart) and when trying to build a form to edit an object I searched online for examples and tutorials, and I saw both of these used. What is the difference between the 2 ? Which one should I use ? Thanks.
ccc
1

votes
5

answer
44

Views
1

votes
1

answer
51

Views

Material Datepicker with Cupertino UI

I have Flutter app that is using Cupertino UI components. I want to show the the Material design date_picker instead of IOS style date picker. Is there any way I can do this? In short I want to keep the same Material style date picker for both Android and IOS app. But whenever I use the date picker...
Sam

View additional questions