From f0856242cc69e186827401cb6cdc0c028567ab38 Mon Sep 17 00:00:00 2001 From: DhanshCOSQ Date: Wed, 26 Feb 2025 16:00:46 +0530 Subject: [PATCH] Initial commit with FitLien package --- .gitignore | 31 +++++++++++++++++++ .metadata | 10 ++++++ CHANGELOG.md | 3 ++ LICENSE | 1 + analysis_options.yaml | 4 +++ lib/fit_lien_package.dart | 6 ++++ pubspec.yaml | 54 +++++++++++++++++++++++++++++++++ test/fit_lien_package_test.dart | 12 ++++++++ 8 files changed, 121 insertions(+) create mode 100644 .gitignore create mode 100644 .metadata create mode 100644 CHANGELOG.md create mode 100644 LICENSE create mode 100644 analysis_options.yaml create mode 100644 lib/fit_lien_package.dart create mode 100644 pubspec.yaml create mode 100644 test/fit_lien_package_test.dart diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eb6c05c --- /dev/null +++ b/.gitignore @@ -0,0 +1,31 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ +migrate_working_dir/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. +/pubspec.lock +**/doc/api/ +.dart_tool/ +.flutter-plugins +.flutter-plugins-dependencies +build/ diff --git a/.metadata b/.metadata new file mode 100644 index 0000000..7ead7a4 --- /dev/null +++ b/.metadata @@ -0,0 +1,10 @@ +# This file tracks properties of this Flutter project. +# Used by Flutter tool to assess capabilities and perform upgrades etc. +# +# This file should be version controlled and should not be manually edited. + +version: + revision: "68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3" + channel: "stable" + +project_type: package diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..41cc7d8 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,3 @@ +## 0.0.1 + +* TODO: Describe initial release. diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ba75c69 --- /dev/null +++ b/LICENSE @@ -0,0 +1 @@ +TODO: Add your license here. diff --git a/analysis_options.yaml b/analysis_options.yaml new file mode 100644 index 0000000..a5744c1 --- /dev/null +++ b/analysis_options.yaml @@ -0,0 +1,4 @@ +include: package:flutter_lints/flutter.yaml + +# Additional information about this file can be found at +# https://dart.dev/guides/language/analysis-options diff --git a/lib/fit_lien_package.dart b/lib/fit_lien_package.dart new file mode 100644 index 0000000..7b70686 --- /dev/null +++ b/lib/fit_lien_package.dart @@ -0,0 +1,6 @@ +class FitLienStatus { + static const String active = 'ACTIVE'; + static const String pending = 'PENDING'; + static const String rejected = 'REJECTED'; + static const String accepted = 'ACCEPTED'; +} diff --git a/pubspec.yaml b/pubspec.yaml new file mode 100644 index 0000000..3c59eb3 --- /dev/null +++ b/pubspec.yaml @@ -0,0 +1,54 @@ +name: fit_lien_package +description: "A new Flutter package project." +version: 0.0.1 +homepage: + +environment: + sdk: ^3.6.1 + flutter: ">=1.17.0" + +dependencies: + flutter: + sdk: flutter + +dev_dependencies: + flutter_test: + sdk: flutter + flutter_lints: ^5.0.0 + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +# The following section is specific to Flutter packages. +flutter: + + # To add assets to your package, add an assets section, like this: + # assets: + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg + # + # For details regarding assets in packages, see + # https://flutter.dev/to/asset-from-package + # + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/to/resolution-aware-images + + # To add custom fonts to your package, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts in packages, see + # https://flutter.dev/to/font-from-package diff --git a/test/fit_lien_package_test.dart b/test/fit_lien_package_test.dart new file mode 100644 index 0000000..2eb81e3 --- /dev/null +++ b/test/fit_lien_package_test.dart @@ -0,0 +1,12 @@ +import 'package:flutter_test/flutter_test.dart'; + +import 'package:fit_lien_package/fit_lien_package.dart'; + +void main() { + test('adds one to input values', () { + final calculator = Calculator(); + expect(calculator.addOne(2), 3); + expect(calculator.addOne(-7), -6); + expect(calculator.addOne(0), 1); + }); +}