one-studio-core

Flutter 包,包含 one studio 应用的核心文件。

入门

在您的 flutter 项目的 pubspec.yaml 文件中,添加以下依赖项

dependencies:
  flutter:
    sdk:
  one_studio_core:
    git:
      url: https://github.com/onestudio-co/one-studio-core.git
      ref: main

在您的库中添加以下导入

import 'package:one_studio_core/core.dart';

用法

即将推出

包内容

├── lib
|   ├── src
│   │   ├── auth
│   │   │   └── auth.dart
|   |   |   └── auth_store.dart
|   |   |   └── authenticable.dart
|   |   ├── cache
|   |   |   └── drivers  
|   |   |       └── cache_driver.dart
|   |   |       └── in_memory_cache_driver.dart
|   |   |       └── shared_preferences_cache_driver.dart
|   |   |   └── cache.dart
│   │   ├── injection
│   │   |   └── injection_container.dart
│   │   |   └── service_provider.dart
|   |   ├──  network
|   |   |    └── errors
|   |   |        └── exceptions.dart
|   |   |        └── failures.dart
|   |   |    └── factories
|   |   |        └── server_exception_factory.dart
|   |   |    └── models
|   |   |        └── jsonable.dart
|   |   |        └── model.dart
|   |   |        └── list_response.dart
|   |   |        └── list_response.g.dart
|   |   |        └── meta.dart
|   |   |        └── meta.g.dart
|   |   |        └── single_m_response.dart
|   |   |        └── single_response.dart
|   |   |        └── single_response.g.dart
|   |   |        └── success_response.dart
|   |   |        └── success_response.g.dart
|   |   |    └── api.dart
|   |   |    └── api_client.dart
|   |   |    └── data_source.dart
|   |   |    └── errors.dart
|   |   |    └── factories.dart
|   |   |    └── models.dart
│   │   ├──  utils
│   │   │    └── device_utils.dart
│   │   │    └── size_util.dart
│   │   │    └── string_extension.dart
│   │   ├── auth.dart
│   │   ├── cache.dart
│   │   ├── injection.dart
│   │   ├── network.dart
│   │   └── utils.dart
│   └── core.dart
├── pubspec.lock
├── pubspec.yaml

GitHub

查看 Github