-
Notifications
You must be signed in to change notification settings - Fork 92
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
Dialog is rendered above the Feedback UI #233
Comments
Where are you adding the better feedback widget? Can you share a snippet of that code? |
I added the BetterFeedback Widget above the MaterialApp. import 'package:feedback/feedback.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return BetterFeedback(
child: MaterialApp(
home: Builder(
builder: (context) => Scaffold(
appBar: AppBar(),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
TextButton(
onPressed: () => BetterFeedback.of(context)
.show((feedback) => print(feedback)),
child: Text('FEEDBACK'),
),
TextButton(
onPressed: () => showDialog(
context: context,
builder: (context) => AlertDialog(
title: Text('My Dialog'),
actions: [
TextButton(
onPressed: () => Navigator.pop(context),
child: Text('OK'),
),
],
),
),
child: Text('DIALOG'),
),
],
),
),
),
),
),
);
}
}
|
You have to move the BetterFeedback widget above the MaterialApp: import 'package:feedback/feedback.dart';
import 'package:flutter/material.dart';
void main() {
runApp(
BetterFeedback(
child: const MyApp(),
),
);
} Edit: Wait, you're doing that. Hm, I'll have to look further into it |
Hi, did you try using |
@Bungeefan Nice, this is working. @ueman maybe we should add this to the README? |
Feel free to create a PR and add it to the readme :) |
@ueman Can you give me write permissions? |
You don't need write permissions. You can fork the repo and then create a PR |
@ueman Oh didn't know that. Thanks! |
Version
2.6.0
Library
feedback
Flutter channel
stable
Flutter version
3.10.6
Platform
Android
Details
If I open the Feedback UI, then select the navigate button, and then opening a Dialog via a button, the Dialog is rendered above the Feedback UI, so that I can't interact with the Feedback UI anymore.
Steps to reproduce
Output of
flutter doctor -v
No response
The text was updated successfully, but these errors were encountered: