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

flutter_simple_calculator 封面
套件詳情v2.7.1

flutter_simple_calculator

提供簡單計算器的 Flutter 小部件。您可以輕鬆地將計算器整合到您的應用程式中。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
2680
喜歡數
130
Pub 分數
160

安裝套件

flutter pub add flutter_simple_calculator

套件介紹

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

一個 Flutter 小部件,提供簡單且可自訂的計算器,方便整合到應用程式中。設計簡潔易用,支援基本算術運算,並可無縫嵌入各種 UI 中。該套件相容於所有主要平台,包括行動裝置、Web 和桌面,非常適合需要快速計算功能但不需要複雜依賴性的應用程式。

適用情境

  • 表單中的簡單算術
  • 預算或支出追蹤應用
  • 數學學習的教育工具
  • 生產力應用中的快速計算功能
  • 遊戲或測驗的內建計算器

主要特色

  • 輕鬆整合,設定簡單
  • 支援基本數學運算
  • 跨平台相容性
  • 可自訂外觀
  • 輕量且快速的效能

適合對象

  • 需要基本計算器的開發者
  • 教育類應用開發者
  • 具有簡單數學需求的應用程式
  • 快速計算功能的原型設計
  • 優先考慮輕量級依賴項的專案

使用建議

  • 僅限基本操作
  • 沒有像三角函數之類的進階功能
  • 不適合複雜的財務計算
  • UI 自訂需要一些編碼
  • 無內建的歷史記錄或記憶功能

原始 README

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

flutter_simple_calculator

Flutter widget that provides simple calculator. You can easily integrate a calculator to your apps.

pub package

Default style
With custom styles
SimpleCalculator(
  theme: const CalculatorThemeData(
    displayColor: Colors.black,
    displayStyle: const TextStyle(fontSize: 80, color: Colors.yellow),
    /*...*/
  ),
)
Localize
SimpleCalculator(
  numberFormat: NumberFormat.decimalPattern("fa_IR")
    ..maximumFractionDigits = 6,
)

Getting Started

To use this plugin, add flutter_simple_calculator as a dependency in your pubspec.yaml file.

dependencies:
 flutter_simple_calculator: 

Import the library in your file.

import 'package:flutter_simple_calculator/flutter_simple_calculator.dart';

See the example directory for a complete sample app using SimpleCalculator. Or use the SimpleCalculator like below.

SimpleCalculator(
  value: 123.45,
  hideExpression: true,
  onChanged: (key, value, expression) {
    /*...*/
  },
  theme: const CalculatorThemeData(
    displayColor: Colors.black,
    displayStyle: const TextStyle(fontSize: 80, color: Colors.yellow),
  ),
)

所屬分類

依賴

依賴清單 4 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。