Flutter

How to change the name of Flutter Application?

谁说我不能喝 提交于 2021-02-08 15:19:07
问题 I just made a Flutter app following the instructions of this page, and I googled how to change the name of the application, and found this answer. But I can't change the name of the application from the manifest file. Initially android:name is io.flutter.app.FlutterApplication . I changed that to Startup Namer , and it gave the error error: attribute 'android:name' in <application> tag must be a valid Java class name. How to reslove this error and change the name? 回答1: The displayed name of

How to change the name of Flutter Application?

你离开我真会死。 提交于 2021-02-08 15:19:02
问题 I just made a Flutter app following the instructions of this page, and I googled how to change the name of the application, and found this answer. But I can't change the name of the application from the manifest file. Initially android:name is io.flutter.app.FlutterApplication . I changed that to Startup Namer , and it gave the error error: attribute 'android:name' in <application> tag must be a valid Java class name. How to reslove this error and change the name? 回答1: The displayed name of

How to change the name of Flutter Application?

旧时模样 提交于 2021-02-08 15:18:22
问题 I just made a Flutter app following the instructions of this page, and I googled how to change the name of the application, and found this answer. But I can't change the name of the application from the manifest file. Initially android:name is io.flutter.app.FlutterApplication . I changed that to Startup Namer , and it gave the error error: attribute 'android:name' in <application> tag must be a valid Java class name. How to reslove this error and change the name? 回答1: The displayed name of

How do I enable scrollbar for vertical scroll and disable for horizontal?

痞子三分冷 提交于 2021-02-08 15:13:38
问题 I've been building layout with both horizontal and vertical scrolling. Vertical scrollable Column is for main content and is populated by different views, including horizontal ListView which shows promo banners. I wanted to show scrollbar for vertical scrolling, but not for horizontal. I've wrapped the SingleChildScrollView which makes Column scrollable in ScrollBar , but the bar appeared on both vertical on horizontal scrolls. Is there any fine-tuning for these kinds of things? Sample to

My Flutter app with Firestore experiences very slow queries when it is resumed from the background on Android

风格不统一 提交于 2021-02-08 15:10:42
问题 Using Flutter 1.20.2. My Flutter app uses Firestore as it's backend database. For the current version I am using and throughout the development of this mobile app I have noticed that if my app is in the background for a period of time (could be a few mins) then when I bring the app back into the foreground the queries are very slow to return data. This does not happen on iOS. It only happens on Android. I use CircularProgressIndicators when my app is busy retrieving data from Firestore. I am

My Flutter app with Firestore experiences very slow queries when it is resumed from the background on Android

℡╲_俬逩灬. 提交于 2021-02-08 15:09:18
问题 Using Flutter 1.20.2. My Flutter app uses Firestore as it's backend database. For the current version I am using and throughout the development of this mobile app I have noticed that if my app is in the background for a period of time (could be a few mins) then when I bring the app back into the foreground the queries are very slow to return data. This does not happen on iOS. It only happens on Android. I use CircularProgressIndicators when my app is busy retrieving data from Firestore. I am

Adding SearchField to StreamBuilder Reading from Firestore

给你一囗甜甜゛ 提交于 2021-02-08 15:04:57
问题 I have a program that I get a list of users from Firebase's cloud Firestore, and display them in a Listview using a StreamBuilder in Flutter. The number of users will be large, and I want to implement a search field in my streambuilder that will query results that match my search field. I want it to look like this: --photo credit: https://blog.usejournal.com/flutter-search-in-listview-1ffa40956685 My Streambuilder that looks like the following: StreamBuilder<QuerySnapshot>( stream: Firestore

(Flutter) HTTPClient Invalid argument(s): No host specified in URI

不羁岁月 提交于 2021-02-08 14:59:55
问题 Currently working on a little app that allows users to view a database stored on Heroku, however I am running into the aforementioned issue when using the database's URL: ".herokuapp.com/api/". var client = createHttpClient(); var response = await client.read('<example>.herokuapp.com/api/<data>'); List data = JSON.decode(response); Heroku doesn't seem to use HTTP(S) nor www, the latter of which I believe to be the issue. Does anyone know how I can bypass or resolve this issue? 回答1: I know

(Flutter) HTTPClient Invalid argument(s): No host specified in URI

爱⌒轻易说出口 提交于 2021-02-08 14:58:39
问题 Currently working on a little app that allows users to view a database stored on Heroku, however I am running into the aforementioned issue when using the database's URL: ".herokuapp.com/api/". var client = createHttpClient(); var response = await client.read('<example>.herokuapp.com/api/<data>'); List data = JSON.decode(response); Heroku doesn't seem to use HTTP(S) nor www, the latter of which I believe to be the issue. Does anyone know how I can bypass or resolve this issue? 回答1: I know

How to make Stack layout scroll-able using SingleChildScrollView?

陌路散爱 提交于 2021-02-08 14:27:48
问题 I am trying to make stack layout scrollable using SingleChildScrollView but it's not scrolling. Is SingleChildScrollView should be used here? I think I have given enough description to make anyone understand my question. More text here to satisfy StackOverflow's requirement to ask a question. Sorry about this. Here's example code. @override Widget build(BuildContext context) { return Scaffold( body: SafeArea( child: Container( child: Center( child: LayoutBuilder( builder: (BuildContext