calculator_neumorphism

所属分类:数值算法/人工智能
开发工具:Dart
文件大小:0KB
下载次数:0
上传日期:2022-07-10 16:06:47
上 传 者sh-1993
说明:  计算器_同构,,
(calculator_neumorphism,,)

文件列表:
.idea/ (0, 2022-07-10)
.idea/runConfigurations/ (0, 2022-07-10)
.idea/runConfigurations/development.xml (345, 2022-07-10)
.idea/runConfigurations/production.xml (342, 2022-07-10)
.idea/runConfigurations/staging.xml (333, 2022-07-10)
.metadata (305, 2022-07-10)
.vscode/ (0, 2022-07-10)
.vscode/extensions.json (227, 2022-07-10)
.vscode/launch.json (947, 2022-07-10)
LICENSE (1074, 2022-07-10)
analysis_options.yaml (115, 2022-07-10)
android/ (0, 2022-07-10)
android/app/ (0, 2022-07-10)
android/app/build.gradle (3704, 2022-07-10)
android/app/src/ (0, 2022-07-10)
android/app/src/debug/ (0, 2022-07-10)
android/app/src/debug/AndroidManifest.xml (343, 2022-07-10)
android/app/src/development/ (0, 2022-07-10)
android/app/src/development/ic_launcher-playstore.png (35777, 2022-07-10)
android/app/src/development/res/ (0, 2022-07-10)
android/app/src/development/res/drawable/ (0, 2022-07-10)
android/app/src/development/res/drawable/ic_launcher_foreground.xml (8875, 2022-07-10)
android/app/src/development/res/mipmap-anydpi-v26/ (0, 2022-07-10)
android/app/src/development/res/mipmap-anydpi-v26/ic_launcher.xml (267, 2022-07-10)
android/app/src/development/res/mipmap-anydpi-v26/ic_launcher_round.xml (267, 2022-07-10)
android/app/src/development/res/mipmap-hdpi/ (0, 2022-07-10)
android/app/src/development/res/mipmap-hdpi/ic_launcher.png (3259, 2022-07-10)
android/app/src/development/res/mipmap-hdpi/ic_launcher_round.png (5309, 2022-07-10)
android/app/src/development/res/mipmap-mdpi/ (0, 2022-07-10)
android/app/src/development/res/mipmap-mdpi/ic_launcher.png (2017, 2022-07-10)
android/app/src/development/res/mipmap-mdpi/ic_launcher_round.png (3278, 2022-07-10)
android/app/src/development/res/mipmap-xhdpi/ (0, 2022-07-10)
android/app/src/development/res/mipmap-xhdpi/ic_launcher.png (4496, 2022-07-10)
... ...

# Calculator ![coverage][coverage_badge] [![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link] [![License: MIT][license_badge]][license_link] Generated by the [Very Good CLI][very_good_cli_link] Calculator Neumorphism --- ## Getting Started This project contains 3 flavors: - development - staging - production To run the desired flavor either use the launch configuration in VSCode/Android Studio or use the following commands: ```sh # Development $ flutter run --flavor development --target lib/main_development.dart # Staging $ flutter run --flavor staging --target lib/main_staging.dart # Production $ flutter run --flavor production --target lib/main_production.dart ``` _\*Calculator works on iOS, Android, Web, and Windows._ --- ## Running Tests To run all unit and widget tests use the following command: ```sh $ flutter test --coverage --test-randomize-ordering-seed random ``` To view the generated coverage report you can use [lcov](https://github.com/linux-test-project/lcov). ```sh # Generate Coverage Report $ genhtml coverage/lcov.info -o coverage/ # Open Coverage Report $ open coverage/index.html ``` --- ## Working with Translations This project relies on [flutter_localizations][flutter_localizations_link] and follows the [official internationalization guide for Flutter][internationalization_link]. ### Adding Strings 1. To add a new localizable string, open the `app_en.arb` file at `lib/l10n/arb/app_en.arb`. ```arb { "@@locale": "en", "counterAppBarTitle": "Counter", "@counterAppBarTitle": { "description": "Text shown in the AppBar of the Counter Page" } } ``` 2. Then add a new key/value and description ```arb { "@@locale": "en", "counterAppBarTitle": "Counter", "@counterAppBarTitle": { "description": "Text shown in the AppBar of the Counter Page" }, "helloWorld": "Hello World", "@helloWorld": { "description": "Hello World Text" } } ``` 3. Use the new string ```dart import 'package:calculator/l10n/l10n.dart'; @override Widget build(BuildContext context) { final l10n = context.l10n; return Text(l10n.helloWorld); } ``` ### Adding Supported Locales Update the `CFBundleLocalizations` array in the `Info.plist` at `ios/Runner/Info.plist` to include the new locale. ```xml ... CFBundleLocalizations en es ... ``` ### Adding Translations 1. For each supported locale, add a new ARB file in `lib/l10n/arb`. ``` ├── l10n │ ├── arb │ │ ├── app_en.arb │ │ └── app_es.arb ``` 2. Add the translated strings to each `.arb` file: `app_en.arb` ```arb { "@@locale": "en", "counterAppBarTitle": "Counter", "@counterAppBarTitle": { "description": "Text shown in the AppBar of the Counter Page" } } ``` `app_es.arb` ```arb { "@@locale": "es", "counterAppBarTitle": "Contador", "@counterAppBarTitle": { "description": "Texto mostrado en la AppBar de la página del contador" } } ``` [coverage_badge]: coverage_badge.svg [flutter_localizations_link]: https://api.flutter.dev/flutter/flutter_localizations/flutter_localizations-library.html [internationalization_link]: https://flutter.dev/docs/development/accessibility-and-localization/internationalization [license_badge]: https://img.shields.io/badge/license-MIT-blue.svg [license_link]: https://opensource.org/licenses/MIT [very_good_analysis_badge]: https://img.shields.io/badge/style-very_good_analysis-B22C89.svg [very_good_analysis_link]: https://pub.dev/packages/very_good_analysis [very_good_cli_link]: https://github.com/VeryGoodOpenSource/very_good_cli ## Type of Change - [ ] New feature (non-breaking change which adds functionality) - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Code refactor - [ ] Build configuration change - [ ] Documentation - [ ] Chore

近期下载者

相关文件


收藏者