Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mistake Popup #29

Merged
merged 19 commits into from
May 24, 2023
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ migrate_working_dir/

# Flutter/Dart/Pub related
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
/pubspec.lock
**/pubspec.lock
**/doc/api/
.dart_tool/
.packages
Expand Down
2 changes: 1 addition & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:solid_lints/analysis_options.yaml
include: package:solid_lints/analysis_options.yaml
drooxie marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
21 changes: 14 additions & 7 deletions example/lib/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,20 @@ class _AppState extends State<App> {
@override
Widget build(BuildContext context) {
return Material(
child: LanguageToolTextField(
style: const TextStyle(),
decoration: const InputDecoration(),
mistakeBuilder: () {
return Container();
},
coloredController: _controller,
// column here for test purposes;
// change mainAxisAlignment to test popup behaviour
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
drooxie marked this conversation as resolved.
Show resolved Hide resolved
children: [
LanguageToolTextField(
style: const TextStyle(),
decoration: const InputDecoration(),
coloredController: _controller,
mistakePopup: MistakePopup(
popupRenderer: PopupOverlayRenderer(),
),
),
],
),
);
}
Expand Down
Loading