- Add MIT license - Add dartdoc to all public APIs (UxKeyboard, BendBox, Bezier, Json) - Add analysis_options.yaml with flutter_lints and public_member_api_docs - Add repository, issue_tracker, topics to pubspec.yaml - Expand package description - Fix BendBox constructor (const, super.key) - Remove unused import in keyboard.dart - Replace boilerplate tests with UxKeyboard smoke tests - Move ux dependency to example's dependencies (not dev_dependencies)
17 lines
419 B
Dart
17 lines
419 B
Dart
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:ux/ux.dart';
|
|
|
|
void main() {
|
|
test('UxKeyboard.instance is a singleton', () {
|
|
expect(UxKeyboard.instance, same(UxKeyboard.instance));
|
|
});
|
|
|
|
test('UxKeyboard.height starts at 0', () {
|
|
expect(UxKeyboard.instance.height, 0);
|
|
});
|
|
|
|
test('UxKeyboard.isOpen is false when height is 0', () {
|
|
expect(UxKeyboard.instance.isOpen, false);
|
|
});
|
|
}
|