From ebe4c5187d036e35bf56145c23deb058e4b0768c Mon Sep 17 00:00:00 2001 From: laiiihz Date: Tue, 24 Nov 2020 15:44:24 +0800 Subject: [PATCH] remove camera --- README.md | 1 - example/lib/main.dart | 15 ++++++++++++--- example/pubspec.lock | 9 +-------- lib/ansu_ui.dart | 1 + pubspec.lock | 9 +-------- pubspec.yaml | 1 - 6 files changed, 15 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index be7d75c..e34d124 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@ ## dep ![flutter_screenutil](https://img.shields.io/badge/flutter__screenutil-3.2.0-brightgreen) -![camera](https://img.shields.io/badge/camera-0.5.8+11-brightgreen) ## Getting Started diff --git a/example/lib/main.dart b/example/lib/main.dart index 42ee619..32e1c68 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -2,10 +2,12 @@ import 'package:ansu_ui/ansu_ui.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; +import 'example_numeric_button.dart'; import 'example_scaffold.dart'; import 'example_button.dart'; import 'example_tab_bar.dart'; import 'example_numeric_button.dart'; +import 'example_tab_bar.dart'; void main() { runApp(MyApp()); @@ -45,9 +47,16 @@ class _MyHomePageState extends State { body: ListView( padding: EdgeInsets.all(16.w), children: [ - ASButton.info(title:'Button',onPressed: () => Get.to(ExampleButton())), - ASButton.info(title:'Scaffold', onPressed:() => Get.to(ExampleScaffold())), - ], + ASButton.info( + title: '按钮 Button', onPressed: () => Get.to(ExampleButton())), + ASButton.info( + title: 'Scaffold', onPressed: () => Get.to(ExampleScaffold())), + ASButton.info( + title: 'Tabbar', onPressed: () => Get.to(ExampleTabBar())), + ASButton.info( + title: '数量选择器NumericButton', + onPressed: () => Get.to(ExampleNumericButton())), + ], ), ); } diff --git a/example/pubspec.lock b/example/pubspec.lock index 35c3b8c..d1a090b 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -22,13 +22,6 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "2.1.0-nullsafety.1" - camera: - dependency: transitive - description: - name: camera - url: "https://pub.flutter-io.cn" - source: hosted - version: "0.5.8+11" characters: dependency: transitive description: @@ -179,4 +172,4 @@ packages: version: "2.1.0-nullsafety.3" sdks: dart: ">=2.10.0 <2.11.0" - flutter: ">=1.17.0 <2.0.0" + flutter: ">=1.17.0" diff --git a/lib/ansu_ui.dart b/lib/ansu_ui.dart index 83ccb89..99e75b5 100644 --- a/lib/ansu_ui.dart +++ b/lib/ansu_ui.dart @@ -8,6 +8,7 @@ export 'scaffold/as_scaffold.dart'; export 'styles/as_colors.dart'; export 'bar/as_tabbar.dart'; export 'drawer/as_drawer.dart'; + export 'utils/screen_adapter.dart'; //`BOTTOM` is external lib diff --git a/pubspec.lock b/pubspec.lock index b1bd10c..708b7b9 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -15,13 +15,6 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "2.1.0-nullsafety.1" - camera: - dependency: "direct main" - description: - name: camera - url: "https://pub.flutter-io.cn" - source: hosted - version: "0.5.8+11" characters: dependency: transitive description: @@ -158,4 +151,4 @@ packages: version: "2.1.0-nullsafety.3" sdks: dart: ">=2.10.0-110 <2.11.0" - flutter: ">=1.17.0 <2.0.0" + flutter: ">=1.17.0" diff --git a/pubspec.yaml b/pubspec.yaml index af967de..8e6c041 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,6 @@ dependencies: flutter: sdk: flutter flutter_screenutil: ^3.2.0 - camera: ^0.5.8+11 dev_dependencies: flutter_test: