搜尋套件、儲存庫與 APP 分類

flutter_dialpad 封面
套件詳情v1.0.5

flutter_dialpad

一個可加入任何 Flutter 應用程式的電話撥號器小部件,以啟用撥打電話號碼的功能。此功能可與 VoIP 應用程式結合使用,以實現撥打電話。

AndroidiOSWeb
近 30 天下載
218
喜歡數
37
Pub 分數
125

安裝套件

flutter pub add flutter_dialpad

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個 Flutter 小部件,提供電話撥號介面,讓使用者能在任何 Flutter 應用中輸入並撥打電話號碼。專為與 VoIP 服務或語音通訊功能整合而設計,支援 Android、iOS 及 Web 平台上的標準撥號盤功能。此套件輕量且可自訂,讓開發者能順暢地將通話功能嵌入應用程式中。它包含一個乾淨、響應式的小鍵盤佈局,針對觸控操作進行最佳化。

適用情境

  • 將撥號器整合到VoIP應用程式中
  • 在通訊應用中新增電話號碼輸入功能
  • 在客戶支援工具中啟用通話啟動
  • 為網頁和行動應用建構電話功能

主要特色

  • 響應式撥號盤 UI
  • 跨平台相容性(Android、iOS、Web)
  • 與現有 Flutter 項目簡單整合
  • 可自訂的鍵佈局和樣式
  • 支援數字輸入與通話觸發
  • 內建觸控反饋與使用者體驗優化

適合對象

  • 開發 VoIP 或通訊應用的開發者
  • 需要輸入電話號碼和撥打電話功能的應用程式
  • 針對多個平台且具有一致使用者介面的專案
  • 希望獲得輕量級撥號器解決方案的團隊

使用建議

  • 需要外部邏輯來處理實際通話的啟動
  • 不包含音訊或網路通話管理
  • 調用可能需要特定於平台的權限
  • 僅限UI;後端呼叫處理必須單獨實現

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

flutter_dialpad

A phone dialer widget that can be added to any Flutter Application to enable the ability to dial a number. This could be combined with a VoIP application to enable placing calls.

This is a purely Dart widget with no dependency on Android or iOS except for the flutter_dtmf package it uses for DTMF tone generation on pressing a button. You can turn it off by setting enableDtmf: false

Getting Started

@override  
  Widget build(BuildContext context) {  
    return Scaffold(  
      backgroundColor: Colors.black,  
      body: SafeArea(  
        child:  
            DialPad(  
                // temporarily disabled  
                // enableDtmf: true,  
                outputMask: "(000) 000-0000",  
                backspaceButtonIconColor: Colors.red,  
                makeCall: (number){  
                    print(number);  
                }  
            )  
        ),  
    );  
  }  

Pre-built UIs

Support has been added for custom UIs, using Dialpad.ios for iOS style keypad or DialPad.metro metro theme. Additional customization is available with many different options.

UI Scaling

A few considerations:

ScalingType

DialPad supports dynamic scaling of UI. Using either a ScalingType.fixed approach will use preset text & icon sizes. If you are using flutter_web_frame with some window constraints, you may wish to use ScalingType.height. For most cases ScalingType.min should suffice.

ScalingSize

Scaling Size provides an easy way to specify the scalar multiplier for the scaling calculation. Instead of using a predefined value of e.g. 0.001, the ScalingSize.small is now used. Customization for buttons allows making the dial button large with a small backspace button.

Scalable

If you wish to add your own Scalable button, feel free to create a widget with Scalable to make use of the rescale function.

Clamping

Scaled UI elements may become extremely small, using minScalingSize and maxScalingSize you can clamp the scaling to a percentage of the original size. This is useful for ensuring the UI is still usable.

Screenshots

iOS Screenshot Android Screenshot
iOS Screenshot Android Screenshot

To Do

[Done] Add DTMF Tones

  • Shrink Ouput to Fit
  • Support for Local Numbers in Text Input Mask

所屬分類

依賴

依賴清單 2 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。