dart

    0熱度

    1回答

    我正在使用AngularDart。我想通過刪除/添加活動偵聽器來更改我正在偵聽的引用。 從下面的鏈接和「Detach listeners」文檔看來,我需要off()方法來刪除活動偵聽器,以便可以添加新的偵聽器。 問題:如何使用Dart中的off()方法。 document 拆離聽衆: 回調通過調用您的火力地堡數據庫參考關閉()方法去除。 您可以通過將其作爲參數傳遞給off()來移除單個偵聽器。在不

    1熱度

    1回答

    帶有AngularDart的角度分量的App佈局中的抽屜邊緣不會被繪製,而scrolling內容在material-content,我該如何解決這個問題? app_component.html <material-drawer persistent #drawer="drawer" [attr.end]="end ? '' : null"> <material-list *deferredCon

    0熱度

    1回答

    我試圖把json數據放入一個變量中。當我打印jsondata時,爲什麼會變爲NULL? 當我更改jsondata打印似乎工作正常,當我使用類型命令它確認它作爲一個列表。那麼當我傳遞給變量時,我做錯了什麼? HttpRequest.getString('file.json').then( (result) => print(JSON.decode(result))); //this prints f

    0熱度

    1回答

    我收到以下錯誤,同時試圖從我的for循環元素添加到我的List ... NoSuchMethodError: The method 'addAll' was called on null. Receiver: null Tried calling: addAll("LrWr826cd3Y") 這裏是我的代碼... Future getData() async {

    2熱度

    1回答

    我試圖在我的Flutter應用中實現無限滾動功能。 我試圖用一個的ListView內對的NotificationListener用於檢測滾動事件,但我看不到,說如果滾動已達到視圖底部的事件。 這將是實現這一目標的最佳方法? 在此先感謝!

    1熱度

    1回答

    我試圖使用Dart替換字符串中的每個字母並使用星號,並且遇到一些困難。在Javascript是: 'test'.replace(/./g, '*'); 所以在飛鏢,我試過如下: 'test'.replaceAll(new RegExp(r'/.'), '*'); 'test'.replaceAll(new RegExp(r'\/.'), '*'); 'test'.replaceAll(ne

    0熱度

    1回答

    我升級從角1我的鏢代碼角4. 這條線現在給出在我的IDE一個錯誤: @Decorator(selector: '[citable]') 註釋必須是一個常量變量或常量構造調用。 我能夠通過包含formDirective來修復@Input上的這個錯誤。我應該爲@Decoration使用什麼指令?在AngularDart的網絡搜索中,我找不到最近提到的@Decorator。 我試着在選擇器後添加co

    2熱度

    1回答

    當我嘗試添加firebase_auth,並運行flutter packages get我得到了我下面的錯誤 Running "flutter packages get" in demo... demo firebase_auth has no versions that match >=0.2.3 <0.3.0 derived from: - demo depends on version ^

    0熱度

    1回答

    當我看到我的$ HOME /的.pub緩存/ bin中可執行正常的模板是: #!/usr/bin/env sh # This file was created by pub v1.24.2. # Package: <package> # Version: <package_version> # Executable: <package> # Script: <package> pub

    0熱度

    1回答

    我學習Ruby和我建立了一個這樣的控制器: class Mobile::HomeController < ApplicationController def index end def create end end 這是非常基本的,並增加了這樣的路線: scope :module => :mobile, :as => :mobile do