From ffd0c44e369a4dffa331d21d3f087252277ba968 Mon Sep 17 00:00:00 2001 From: laiiihz Date: Mon, 23 Nov 2020 15:16:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ansu_ui.dart | 6 +----- lib/buttons/as_button.dart | 16 ++++++++++++++++ test/ansu_ui_test.dart | 13 ------------- 3 files changed, 17 insertions(+), 18 deletions(-) create mode 100644 lib/buttons/as_button.dart delete mode 100644 test/ansu_ui_test.dart diff --git a/lib/ansu_ui.dart b/lib/ansu_ui.dart index 6e24451..0be0113 100644 --- a/lib/ansu_ui.dart +++ b/lib/ansu_ui.dart @@ -1,7 +1,3 @@ library ansu_ui; -/// A Calculator. -class Calculator { - /// Returns [value] plus 1. - int addOne(int value) => value + 1; -} +export 'buttons/as_button.dart'; diff --git a/lib/buttons/as_button.dart b/lib/buttons/as_button.dart new file mode 100644 index 0000000..b32f8e3 --- /dev/null +++ b/lib/buttons/as_button.dart @@ -0,0 +1,16 @@ +import 'package:flutter/material.dart'; + +///安速按钮 +class ASButton extends StatefulWidget { + ASButton({Key key}) : super(key: key); + + @override + _ASButtonState createState() => _ASButtonState(); +} + +class _ASButtonState extends State { + @override + Widget build(BuildContext context) { + return SizedBox(); + } +} diff --git a/test/ansu_ui_test.dart b/test/ansu_ui_test.dart deleted file mode 100644 index aae6e6c..0000000 --- a/test/ansu_ui_test.dart +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:flutter_test/flutter_test.dart'; - -import 'package:ansu_ui/ansu_ui.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); - expect(() => calculator.addOne(null), throwsNoSuchMethodError); - }); -}