Flutter

Flutter show marker's infoWindowText by default in Google map widget

老子叫甜甜 提交于 2021-02-10 03:01:22
问题 Can anyone suggest if there is a way of keeping infoWindowText showing when I open the Google map widget in Flutter (without having to click the marker first)? or a similar way of keeping a Text widget above a specific marker? Thanks in advance ~~ 来源: https://stackoverflow.com/questions/54745550/flutter-show-markers-infowindowtext-by-default-in-google-map-widget

Using AssetManager class from Android NDK in a Flutter app

不羁的心 提交于 2021-02-10 03:00:09
问题 I've been trying to use the Android NDK's AssetManager class in my Flutter app, that works with Google Oboe, to access to audio files. Following this example in the Oboe repository, I learned that they obtain the AssetManager from Java like this: JNIEXPORT void JNICALL Java_com_google_oboe_sample_rhythmgame_MainActivity_native_1onStart(JNIEnv *env, jobject instance, jobject jAssetManager) { AAssetManager *assetManager = AAssetManager_fromJava(env, jAssetManager); if (assetManager == nullptr)

Flutter sqflite app does not working on real ios device

假如想象 提交于 2021-02-10 00:35:32
问题 I have a flutter app using sqflite database. It works perfectly on android emulator and device, also working on ios simulator. on ios real device it works but does not save or retrieve data just static empty UI I use xcode 10.1, and ios 11.2.6 on iphone 6 and ios 12.1.4 on iphone 5s. import 'package:sqflite/sqflite.dart'; import 'dart:async'; import 'dart:io'; import 'package:path_provider/path_provider.dart'; import 'package:flutter_app/models/note.dart'; class DatabaseHelper { static

Flutter sqflite app does not working on real ios device

蓝咒 提交于 2021-02-10 00:31:16
问题 I have a flutter app using sqflite database. It works perfectly on android emulator and device, also working on ios simulator. on ios real device it works but does not save or retrieve data just static empty UI I use xcode 10.1, and ios 11.2.6 on iphone 6 and ios 12.1.4 on iphone 5s. import 'package:sqflite/sqflite.dart'; import 'dart:async'; import 'dart:io'; import 'package:path_provider/path_provider.dart'; import 'package:flutter_app/models/note.dart'; class DatabaseHelper { static

Flutter 自定义组件实战

不羁的心 提交于 2021-02-09 13:14:19
展开 //--> 本文分享自微信公众号 - 前端开发实用技巧(xiaowenhan_2018)。 如有侵权,请联系 support@oschina.cn 删除。 本文参与“ OSC源创计划 ”,欢迎正在阅读的你也加入,一起分享。 来源: oschina 链接: https://my.oschina.net/u/2489892/blog/4456673

ListTile OnTap is working when I use ListView. But when i use ListWheelScrollView it doesnt work

我只是一个虾纸丫 提交于 2021-02-09 11:11:52
问题 ListTile OnTap is working when I use ListView. But when i use ListWheelScrollView it doesn't work. I mean it doesn't get tapped. The view changes. But i can't seem to tap it. I looked for the solution in a lot of places and links but still couldn't find the solutions. These are the code I did. @override Widget build(BuildContext context) { return new ListWheelScrollView( physics:FixedExtentScrollPhysics(), children: getPostList(), itemExtent: 100.0, ); } List<PostListItem> getPostList() {

Flutter Firebase Authentication currentUser() returns null

一世执手 提交于 2021-02-09 11:10:42
问题 This is about Flutter Firebase Authentication plugin. I am trying to send a verification email after creating a new user, but sendEmailVerification() internally uses currentUser(). This looks like a bug to me, but just in case, I am posting a question to stackoverflow. The error is the same on Android and IOS. First two lines return FirebaseUser. The third returns null. Forth, if third is commented throws a null reference error. Thanks, Boris user = await _auth.createUserWithEmailAndPassword

Flutter Firebase Authentication currentUser() returns null

一个人想着一个人 提交于 2021-02-09 11:09:12
问题 This is about Flutter Firebase Authentication plugin. I am trying to send a verification email after creating a new user, but sendEmailVerification() internally uses currentUser(). This looks like a bug to me, but just in case, I am posting a question to stackoverflow. The error is the same on Android and IOS. First two lines return FirebaseUser. The third returns null. Forth, if third is commented throws a null reference error. Thanks, Boris user = await _auth.createUserWithEmailAndPassword

ListTile OnTap is working when I use ListView. But when i use ListWheelScrollView it doesnt work

我怕爱的太早我们不能终老 提交于 2021-02-09 11:07:08
问题 ListTile OnTap is working when I use ListView. But when i use ListWheelScrollView it doesn't work. I mean it doesn't get tapped. The view changes. But i can't seem to tap it. I looked for the solution in a lot of places and links but still couldn't find the solutions. These are the code I did. @override Widget build(BuildContext context) { return new ListWheelScrollView( physics:FixedExtentScrollPhysics(), children: getPostList(), itemExtent: 100.0, ); } List<PostListItem> getPostList() {

ListTile OnTap is working when I use ListView. But when i use ListWheelScrollView it doesnt work

陌路散爱 提交于 2021-02-09 11:06:53
问题 ListTile OnTap is working when I use ListView. But when i use ListWheelScrollView it doesn't work. I mean it doesn't get tapped. The view changes. But i can't seem to tap it. I looked for the solution in a lot of places and links but still couldn't find the solutions. These are the code I did. @override Widget build(BuildContext context) { return new ListWheelScrollView( physics:FixedExtentScrollPhysics(), children: getPostList(), itemExtent: 100.0, ); } List<PostListItem> getPostList() {