v2.7.1flutter_simple_calculator
간단한 계산기를 제공하는 플러터 위젯입니다. 앱에 쉽게 계산기를 통합할 수 있습니다.
127좋아요 1.8천30일 다운로드160Pub 점수
AndroidiOSWebmacOSWindowsLinux
간단한 계산기를 제공하는 Flutter 위젯입니다.
{"sdk":"flutter"}^0.20.2^2.3.1^3.0.0^3.1.0^6.0.0{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Flutter widget that provides simple calculator. You can easily integrate a calculator to your apps.
SimpleCalculator(
theme: const CalculatorThemeData(
displayColor: Colors.black,
displayStyle: const TextStyle(fontSize: 80, color: Colors.yellow),
/*...*/
),
)
SimpleCalculator(
numberFormat: NumberFormat.decimalPattern("fa_IR")
..maximumFractionDigits = 6,
)
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),
),
)