cost 294 ms
Flutter:突出顯示當前頁碼

[英]Flutter: Highlight Current Page Number

在我的 bottomNavigationBar 中,我想突出顯示用戶在翻閱一本書的頁面時所在的頁碼。 這可以通過設置背景色來完成:_page == index? color.blue:我 bottomNavigationBar 中 ListView.builder 中的 color.white,它 ...

2023-06-07 07:42:19   1   44    flutter / dart  
Flutter 的 EventChannel 不向 dart 端發送數據

[英]Flutter's EventChannel not sending data to dart side

賞金將在 6 天后到期。 此問題的答案有資格獲得+100聲望賞金。 BraveEvidence想讓更多人關注這個問題。 我試圖在 android 的共享表中顯示我的應用程序,我能夠成功地做到這一點,但我無法使用EventChannel從本機端向 dart 發送數據。 我已將我的 MainActi ...

Flutter Isar 數據庫在 model 中的使用

[英]Flutter Isar database usage in a model

我目前正在使用 Isar 創建一個數據庫,如下所示: 在我的代碼中,我有一個圖像,我正在使用 GestureDetector onTapUp 事件繪制這些多邊形: 但是,當我這樣做時,多邊形會出現在數據庫中,但頂點不會。 所以我嘗試了: 現在多邊形和頂點都在數據庫中,但是沒有設置 id/IsarLi ...

just_audio/audio_service:無縫播放不適用於 FLAC,但僅適用於第一次播放的第一首歌曲

[英]just_audio/audio_service: Gapless playback doesn't work with FLAC, but only on the first song for the first playthrough

為這個不完美的問題道歉,但我已經用盡了所有選擇,我不知道還能做什么。 從 iOS 上的文件播放 FLAC 時,從歌曲 1 到 2 的第一個過渡有大約 100 毫秒的延遲,即使是從ConcatenatingAudioSource播放時也是如此。 我無法通過修改audio_service播放列表示例來重 ...

Flutter - 找不到 com.transistorsoft:tsbackgroundfetch:+ 的任何匹配項,因為沒有可用的 com.transistorsoft:tsbackgroundfetch 版本

[英]Flutter - Could not find any matches for com.transistorsoft:tsbackgroundfetch:+ as no versions of com.transistorsoft:tsbackgroundfetch are available

背景提取:^1.1.6 我使用上面的插件每 15 分鍾執行一次任務,即使在終止應用程序后也是如此。 但是在添加上面的庫之后,我的應用程序拋出了錯誤 ...

2023-05-22 11:33:49   2   147    flutter / dart  
刪除字符串中除最后一個以外的單詞

[英]Remove words except last one in String

我每次都有一個不同值的字符串: 我只想得到最后一句話Joe 但每次我都不知道字符串由多少個單詞組成 ...

2023-02-02 16:22:42   4   36    dart  
如何使用供應商

[英]How to use Provider

在此處輸入圖像描述我想在 onTap 完成后更改 AppIcon2 class 中的 iconColor 變量。 我如何與提供者一起做? `` 我試圖與提供者一起做,但沒有成功 ...

圓形按鈕 - flutter

[英]Circular button - flutter

我正在嘗試創建一個圓形按鈕,但是當我嘗試使用 ElevatedButton 時出現錯誤: 這是代碼: 我也曾嘗試創建一個 FloatingActionButton,但沒有成功。 ...

2023-02-01 21:34:54   1   18    flutter / dart  
不要跨異步間隙使用 BuildContexts - Flutter

[英]Do not use BuildContexts across async gaps - Flutter

我在await之后使用SnackBar 。 所以,它顯示這樣的錯誤: 我使用if (!mounted)這一行來消除錯誤。 它消除了問題,但是SnackBar沒有顯示。 完成任務時我的代碼在這里: showSnackBar 是 customWidget。 它的代碼: 我該怎么辦? 我想在等待之后展 ...

如何從“添加新”DropdownButtonFormField 調用表單

[英]How to call a form from an 'Add New' DropdownButtonFormField

我是一名擁有 25 年學位的計算機科學家,但對 Flutter 和一般的移動應用程序還是陌生的。 我現在正在構建 forms 並希望 append 在 DropDownButtonFormField 中現有成員列表的底部添加一個“添加新”項。 如果用戶選擇“添加新”項,我想調用一個“注冊新成員”表單 ...

Flutter請求參數中如何發送Map?

[英]How to send Map in request parameters in Flutter?

我遇到了一個問題,我在 Map<String, String> apiKeyMap 變量中有一個帶有參數的請求,我想使用toJson()方法添加FilterStationParamsModel中的更多參數,但是在添加一個 map 時出現錯誤給另一個。 告訴我如何解決這個問題,讓參數從m ...

2023-02-01 20:29:54   1   23    flutter / dart  
Flutter/Dart - 從外部 class 更新 state

[英]Flutter/Dart - Update state from an external class

我是 Flutter/Dart 的新手,我已經為我的應用程序完成了所有布局,現在是時候調用我的應用程序的 API 了。 我正在嘗試盡可能干凈地管理 forms。 我創建了一個 class 來管理TextFields數據(值和錯誤),如果我的 API 返回錯誤我希望屏幕更新而不必調用setState ...

2023-02-01 19:56:32   1   32    flutter / dart  
如何在Flutter發起鏈接?

[英]How to launch a link in Flutter?

我正在嘗試在 ElevatedButton 中啟動一個 URL 鏈接,但如果我按下按鈕它不起作用,它不會執行任何操作,ElevatedButton 是否有不同的功能,或者我應該寫一個不同的 label ...

2023-02-01 19:11:59   1   27    flutter / dart  
您好,我需要比較 2 個日期,例如開始日期和結束日期,如果我 select 是星期三,我需要這些日期之間的所有星期三

[英]hello i need to compare 2 dates like start date and end date and if i select a wednesday i need all wednesdays occuring between these dates

我有一個場景,用戶選擇開始日期和結束日期,用戶還選擇一個特定的日期,我需要顯示該特定日期和它們之間的日期。 我嘗試了 Intl package 差異方法但沒有用 ...

Dart TCP 套接字將所有“寫入”同步調用連接為一個數據包

[英]Dart TCP socket concatenates all 'write' sync calls as a single packet

我試圖一次向服務器發送多個數據包,但套接字不斷“合並”所有同步調用以作為單個調用write ,我做了一個最小的可重現示例:import 'dart:io'; void main() async { // <Server-side> Create server in the loca ...

如何修復Flutter App中的BottomNavigationBar消失問題

[英]How to fix BottomNavigationBar disappearance issue in Flutter App

我的底部導航欄出現問題。 問題是每當我導航到另一個頁面時,底部導航欄就會消失。 我正在使用以下代碼導航到另一個頁面: 這是 BottomBar 的總結部分 這是 main.dart 我的問題是我在使用時應該怎么做才能保持底欄 單擊提交按鈕或其他按鈕后 ...

2023-02-01 18:39:12   1   21    flutter / dart  
使用 flutter web 創建新聯系人

[英]Create new contact using flutter web

所以我在 flutter web 中有這個“保存聯系人”按鈕,我想在單擊它時在設備筆記本電腦/android/ios 上保存 vcf 或在設備中打開添加新聯系人默認表單並在其中添加這些信息我試過一些包,但它們只支持 android 和 ios 而不是 web 我也嘗試手動制作 vcf 但我無法獲得路 ...

“??” ("if null") 運算符類型解析問題

[英]"??" ("if null") operator type resolution issue

考慮下面的代碼:mixin M {} abstract class I {} class A = I with M; class B = I with M; void main() { final A? a = A(); final B? b = B(); final I? i ...

2023-02-01 16:39:09   2   120    dart  
是否可以在 flutter 中編寫一個應用程序,將數據發送到 android 中的另一個應用程序? 通過事件通道

[英]Is possible to have an app written in flutter that send data to another app in android? through EventChannels

你能解釋一下如何從 flutter 中編寫的應用程序 A 到 Android B 中編寫的應用程序進行通信嗎?是否可以為此目的使用 EventChannels? 這種通信是否可能是雙向的? 這里有一個例子(FLUTTER APP A): Android APP B: 我們可以讓 A 向 B 發送一 ...


 
粵ICP備18138465號  © 2020-2025 STACKOOM.COM