- 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)
12 lines
397 B
Dart
12 lines
397 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:ux_example/main.dart';
|
|
|
|
void main() {
|
|
testWidgets('ChatScreen renders', (WidgetTester tester) async {
|
|
await tester.pumpWidget(MaterialApp(home: ChatScreen()));
|
|
expect(find.text('UxKeyboard Chat'), findsOneWidget);
|
|
expect(find.text('Type a message...'), findsOneWidget);
|
|
});
|
|
}
|