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); - }); -}