From 809dbe0b8da03250a0e6dca521f7658512a3ebf3 Mon Sep 17 00:00:00 2001 From: zontreck Date: Sat, 4 May 2024 18:09:43 -0700 Subject: [PATCH] Initial commit --- .gitignore | 3 +++ .metadata | 10 ++++++++ CHANGELOG.md | 3 +++ README.md | 4 ++-- analysis_options.yaml | 4 ++++ lib/libac.dart | 7 ++++++ pubspec.yaml | 54 +++++++++++++++++++++++++++++++++++++++++++ test/libac_test.dart | 12 ++++++++++ 8 files changed, 95 insertions(+), 2 deletions(-) create mode 100644 .metadata create mode 100644 CHANGELOG.md create mode 100644 analysis_options.yaml create mode 100644 lib/libac.dart create mode 100644 pubspec.yaml create mode 100644 test/libac_test.dart diff --git a/.gitignore b/.gitignore index e01a9fb..362ff8e 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,6 @@ doc/api/ .flutter-plugins .flutter-plugins-dependencies + +.idea +*.iml \ No newline at end of file diff --git a/.metadata b/.metadata new file mode 100644 index 0000000..7e6d66a --- /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: "54e66469a933b60ddf175f858f82eaeb97e48c8d" + 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/README.md b/README.md index 2deab4d..9715c36 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# LibACDart +# LibAC-dart -A Dart Library for my commonly used code and flutter widgets. \ No newline at end of file +This is the Aria's Creations common code library. This contains commonly used code, helpers, and useful widgets specific to Aria's Creations. \ No newline at end of file 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/libac.dart b/lib/libac.dart new file mode 100644 index 0000000..99748ae --- /dev/null +++ b/lib/libac.dart @@ -0,0 +1,7 @@ +library libac; + +/// A Calculator. +class Calculator { + /// Returns [value] plus 1. + int addOne(int value) => value + 1; +} diff --git a/pubspec.yaml b/pubspec.yaml new file mode 100644 index 0000000..33fb7ce --- /dev/null +++ b/pubspec.yaml @@ -0,0 +1,54 @@ +name: libac_flutter +description: "Aria's Creations code library" +version: 1.0 +homepage: + +environment: + sdk: '>=3.3.4 <4.0.0' + flutter: ">=1.17.0" + +dependencies: + flutter: + sdk: flutter + +dev_dependencies: + flutter_test: + sdk: flutter + flutter_lints: ^3.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/assets-and-images/#from-packages + # + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/assets-and-images/#resolution-aware + + # 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/custom-fonts/#from-packages diff --git a/test/libac_test.dart b/test/libac_test.dart new file mode 100644 index 0000000..e2058c7 --- /dev/null +++ b/test/libac_test.dart @@ -0,0 +1,12 @@ +import 'package:flutter_test/flutter_test.dart'; + +import 'package:libac/libac.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); + }); +}