Prechádzať zdrojové kódy

project initialization

melon.yin 3 rokov pred
commit
5c3a756d2e

+ 74 - 0
.gitignore

@@ -0,0 +1,74 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+
+# 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
+**/doc/api/
+.dart_tool/
+.flutter-plugins
+.flutter-plugins-dependencies
+.packages
+.pub-cache/
+.pub/
+build/
+
+# Android related
+**/android/**/gradle-wrapper.jar
+**/android/.gradle
+**/android/captures/
+**/android/gradlew
+**/android/gradlew.bat
+**/android/local.properties
+**/android/**/GeneratedPluginRegistrant.java
+
+# iOS/XCode related
+**/ios/**/*.mode1v3
+**/ios/**/*.mode2v3
+**/ios/**/*.moved-aside
+**/ios/**/*.pbxuser
+**/ios/**/*.perspectivev3
+**/ios/**/*sync/
+**/ios/**/.sconsign.dblite
+**/ios/**/.tags*
+**/ios/**/.vagrant/
+**/ios/**/DerivedData/
+**/ios/**/Icon?
+**/ios/**/Pods/
+**/ios/**/.symlinks/
+**/ios/**/profile
+**/ios/**/xcuserdata
+**/ios/.generated/
+**/ios/Flutter/App.framework
+**/ios/Flutter/Flutter.framework
+**/ios/Flutter/Flutter.podspec
+**/ios/Flutter/Generated.xcconfig
+**/ios/Flutter/app.flx
+**/ios/Flutter/app.zip
+**/ios/Flutter/flutter_assets/
+**/ios/Flutter/flutter_export_environment.sh
+**/ios/ServiceDefinitions.json
+**/ios/Runner/GeneratedPluginRegistrant.*
+
+# Exceptions to above rules.
+!**/ios/**/default.mode1v3
+!**/ios/**/default.mode2v3
+!**/ios/**/default.pbxuser
+!**/ios/**/default.perspectivev3

+ 10 - 0
.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: adc687823a831bbebe28bdccfac1a628ca621513
+  channel: stable
+
+project_type: package

+ 3 - 0
CHANGELOG.md

@@ -0,0 +1,3 @@
+## [0.0.1] - TODO: Add release date.
+
+* TODO: Describe initial release.

+ 1 - 0
LICENSE

@@ -0,0 +1 @@
+TODO: Add your license here.

+ 14 - 0
README.md

@@ -0,0 +1,14 @@
+# resource
+
+A new Flutter package project.
+
+## Getting Started
+
+This project is a starting point for a Dart
+[package](https://flutter.dev/developing-packages/),
+a library module containing code that can be shared easily across
+multiple Flutter or Dart projects.
+
+For help getting started with Flutter, view our 
+[online documentation](https://flutter.dev/docs), which offers tutorials, 
+samples, guidance on mobile development, and a full API reference.

BIN
assets/fonts/Calibri-Regular-2.ttf


BIN
assets/fonts/QingNingYouYuan-2.ttf


BIN
assets/imgs/logo_en.png


+ 91 - 0
assets/manifest.json

@@ -0,0 +1,91 @@
+{
+    "name": "lightness",
+    "description": "default theme",
+    "author": "vinno",
+    "version": "0.0.1",
+    "versionType": "default",
+    "clientVersionMinimum": "1.0.0",
+    "supportedPlatforms": ["android", "iOS", "web", "windows", "macOS"],
+    "resources": [
+        {
+            "key": "font.default.zh",
+            "from": 0,
+            "path": "fonts/QingNingYouYuan-2.ttf"
+        },
+        {
+            "key": "font.default.en",
+            "from": 0,
+            "path": "fonts/Calibri-Regular-2.ttf"
+        },
+        {
+            "key": "img.logo.en",
+            "from": 0,
+            "path": "imgs/logo_en.png"
+        },
+        {
+            "key": "txt.test",
+            "from": 0,
+            "path": "txt/test.txt"
+        },
+        {
+            "key": "img.zhangcaoyan",
+            "from": 1,
+            "path": "http://img.kelvtong.cn/images/melon/zhangcaoyan.png"
+        }
+    ],
+    "localeSettings": {
+        "chinese": {
+            "fontFamily": "QNYouYuan",
+            "fontFamilySource": "font.default.zh"
+        },
+        "english": {
+            "fontFamily": "CalibriR",
+            "fontFamilySource": "font.default.en"
+        }
+    },
+    "colorScheme": {
+        "primary": "2c77e5",
+        "header": "2c77e5",
+        "secondary": "7bc3ff",
+        "background": "f2f2f2",
+        "nav": "0a2030",
+        "line": "d3d3d3",
+        "additional": "f1413d",
+        "dialogBorder": "",
+        "remedicalBackground": "16161a",
+        "buttonPrimary": "2c77e5",
+        "buttonSecondary": "d4e3f9",
+        "text": "4c4948",
+        "textSelected": "16161a",
+        "textTips": "a5a3a3",
+        "scrollBar": "99a2a8",
+        "foreground": "ffffff"
+    },
+	"darkColorScheme": {
+        "primary": "2c77e5",
+        "header": "364f87",
+        "secondary": "2d2d3a",
+        "background": "16161a",
+        "nav": "0a2030",
+        "line": "364f87",
+        "additional": "f1413d",
+        "dialogBorder": "d1d1d1",
+        "remedicalBackground": "16161a",
+        "buttonPrimary": "2c77e5",
+        "buttonSecondary": "364f87",
+        "text": "ffffff",
+        "textSelected": "ffffff",
+        "textTips": "2c77e5",
+        "scrollBar": "364f87",
+        "foreground": "ffffff"
+    },
+    "textSizeScheme": {
+        "headlineLargeSize": 36.0,
+        "headlineSize": 30.0,
+        "headlineSmallSize": 26.0,
+        "bodySize": 20.0,
+        "buttonSize": 16.0,
+        "tipsSize": 18.0,
+        "tipsSmallSize": 16.0
+    }
+}

+ 7 - 0
assets/txt/test.txt

@@ -0,0 +1,7 @@
+# TEST TEXT
+- line 01
+- line 02
+sssssss
+
+p
+<a>xxxx</a>

+ 7 - 0
lib/index.dart

@@ -0,0 +1,7 @@
+library fistheme;
+
+/*
+
+  此Package仅供主题配置使用,请不要添加任何代码
+
+ */

+ 289 - 0
pubspec.lock

@@ -0,0 +1,289 @@
+# Generated by pub
+# See https://dart.dev/tools/pub/glossary#lockfile
+packages:
+  async:
+    dependency: transitive
+    description:
+      name: async
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.6.1"
+  boolean_selector:
+    dependency: transitive
+    description:
+      name: boolean_selector
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.1.0"
+  characters:
+    dependency: transitive
+    description:
+      name: characters
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "1.1.0"
+  charcode:
+    dependency: transitive
+    description:
+      name: charcode
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "1.2.0"
+  clock:
+    dependency: transitive
+    description:
+      name: clock
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "1.1.0"
+  collection:
+    dependency: transitive
+    description:
+      name: collection
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "1.15.0"
+  dio:
+    dependency: "direct main"
+    description:
+      name: dio
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "4.0.0"
+  fake_async:
+    dependency: transitive
+    description:
+      name: fake_async
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "1.2.0"
+  ffi:
+    dependency: transitive
+    description:
+      name: ffi
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "1.1.2"
+  file:
+    dependency: transitive
+    description:
+      name: file
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "6.1.2"
+  fiscommon:
+    dependency: "direct main"
+    description:
+      path: "."
+      ref: HEAD
+      resolved-ref: be80b5b194dce81ae4f194a63d60055e3d9fd19e
+      url: "http://git.ius.plus:88/Flyinsono-Packages/fis-common.git"
+    source: git
+    version: "0.0.1"
+  flutter:
+    dependency: "direct main"
+    description: flutter
+    source: sdk
+    version: "0.0.0"
+  flutter_test:
+    dependency: "direct dev"
+    description: flutter
+    source: sdk
+    version: "0.0.0"
+  http:
+    dependency: "direct main"
+    description:
+      name: http
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "0.13.3"
+  http_parser:
+    dependency: transitive
+    description:
+      name: http_parser
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "4.0.0"
+  intl:
+    dependency: transitive
+    description:
+      name: intl
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "0.17.0"
+  js:
+    dependency: transitive
+    description:
+      name: js
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "0.6.3"
+  matcher:
+    dependency: transitive
+    description:
+      name: matcher
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "0.12.10"
+  meta:
+    dependency: transitive
+    description:
+      name: meta
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "1.3.0"
+  path:
+    dependency: transitive
+    description:
+      name: path
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "1.8.0"
+  path_provider:
+    dependency: "direct main"
+    description:
+      name: path_provider
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.0.2"
+  path_provider_linux:
+    dependency: transitive
+    description:
+      name: path_provider_linux
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.0.0"
+  path_provider_macos:
+    dependency: transitive
+    description:
+      name: path_provider_macos
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.0.0"
+  path_provider_platform_interface:
+    dependency: transitive
+    description:
+      name: path_provider_platform_interface
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.0.1"
+  path_provider_windows:
+    dependency: transitive
+    description:
+      name: path_provider_windows
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.0.1"
+  pedantic:
+    dependency: transitive
+    description:
+      name: pedantic
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "1.11.1"
+  platform:
+    dependency: transitive
+    description:
+      name: platform
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "3.0.0"
+  plugin_platform_interface:
+    dependency: transitive
+    description:
+      name: plugin_platform_interface
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.0.0"
+  process:
+    dependency: transitive
+    description:
+      name: process
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "4.2.1"
+  sky_engine:
+    dependency: transitive
+    description: flutter
+    source: sdk
+    version: "0.0.99"
+  source_span:
+    dependency: transitive
+    description:
+      name: source_span
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "1.8.1"
+  stack_trace:
+    dependency: transitive
+    description:
+      name: stack_trace
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "1.10.0"
+  stream_channel:
+    dependency: transitive
+    description:
+      name: stream_channel
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.1.0"
+  string_scanner:
+    dependency: transitive
+    description:
+      name: string_scanner
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "1.1.0"
+  synchronized:
+    dependency: "direct main"
+    description:
+      name: synchronized
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "3.0.0"
+  term_glyph:
+    dependency: transitive
+    description:
+      name: term_glyph
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "1.2.0"
+  test_api:
+    dependency: transitive
+    description:
+      name: test_api
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "0.3.0"
+  typed_data:
+    dependency: transitive
+    description:
+      name: typed_data
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "1.3.0"
+  vector_math:
+    dependency: transitive
+    description:
+      name: vector_math
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.1.0"
+  win32:
+    dependency: transitive
+    description:
+      name: win32
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.0.5"
+  xdg_directories:
+    dependency: transitive
+    description:
+      name: xdg_directories
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "0.2.0"
+sdks:
+  dart: ">=2.12.0 <3.0.0"
+  flutter: ">=1.20.0"

+ 72 - 0
pubspec.yaml

@@ -0,0 +1,72 @@
+name: fisresource
+description: flyinoso app theme resources package.
+version: 0.0.1
+author:
+homepage:
+
+# add this line for pathing dependency
+publish_to: none
+
+environment:
+    sdk: ">=2.12.0 <3.0.0"
+    flutter: ">=1.17.0"
+
+dependencies:
+    dio: ^4.0.0
+    flutter:
+        sdk: flutter
+    http: ^0.13.3
+    path_provider: ^2.0.2
+    synchronized: ^3.0.0
+
+    fiscommon:
+        git:
+            url: http://git.ius.plus:88/Flyinsono-Packages/fis-common.git
+        # path: ../common/
+
+dev_dependencies:
+    flutter_test:
+        sdk: flutter
+
+# 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.
+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.
+
+    assets:
+        - assets/manifest.json
+        - assets/fonts/Calibri-Regular-2.ttf
+        - assets/fonts/QingNingYouYuan-2.ttf
+        - assets/imgs/logo_en.png
+        - assets/txt/test.txt
+
+    # 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

+ 5 - 0
test/resource_test.dart

@@ -0,0 +1,5 @@
+import 'package:flutter_test/flutter_test.dart';
+
+void main() {
+  test('adds one to input values', () {});
+}