-
Notifications
You must be signed in to change notification settings - Fork 138
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
release模式dialog完全出不来 #190
Labels
bug
Something isn't working
Comments
给下可复现问题,可运行的简化demo;你说的现象也录个视频上传下吧 |
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
builder: FlutterSmartDialog.init(),
navigatorObservers: [
FlutterSmartDialog.observer
],
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: Scaffold(
body: Center(
child: GestureDetector(
onTap: () {
SmartDialog.show(
tag: '11',
builder: (context) {
return Center(
child: Container(
height: 300,
width: 300,
color: Colors.blue,
),
);
},
animationType: SmartAnimationType.centerFade_otherSlide,
backDismiss: true,
keepSingle: true,
debounce: true,
);
},
child: Container(
width: 200,
height: 200,
color: Colors.red,
),
),
),
),
);
}
} |
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
builder: FlutterSmartDialog.init(),
navigatorObservers: [
FlutterSmartDialog.observer
],
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: Scaffold(
body: Center(
child: FloatingActionButton(
onPressed:(){
SmartDialog.show(
tag: '11',
builder: (context) {
return Center(
child: Container(
height: 300,
width: 300,
color: Colors.red,
),
);
},
animationType: SmartAnimationType.centerFade_otherSlide,
backDismiss: true,
keepSingle: true,
debounce: true,
);
},
tooltip: 'Increment',
child: const Icon(Icons.add),
),
),
),
);
}
void _incrementCounter() {
SmartDialog.show(
tag: '11',
builder: (context) {
return Center(
child: Container(
height: 300,
width: 300,
color: Colors.red,
),
);
},
animationType: SmartAnimationType.centerFade_otherSlide,
backDismiss: true,
keepSingle: true,
debounce: true,
);
return;
}
} |
15_1716604956.mp4问题视频 |
dependencies:
flutter_smart_dialog: ^4.9.7+6 |
dialog正常,我今天看看能不能复现toast那个bug |
Closed
dependencies:
flutter_smart_dialog: ^4.9.7+7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
版本信息
描述bug/需求
debug模式下正常,release模式就无法弹出来了,要点几十下才出来,回退到4.9.6就正常
另外toast在使用last模式,在A页面弹出后,马上回退到B页面,会不消失
问题demo
The text was updated successfully, but these errors were encountered: