Skip to content

Commit

Permalink
feat: 补充代码
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxSensei001 committed Feb 13, 2025
1 parent c01cc56 commit dfae031
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions lib/app/ui/widgets/glow_notification_widget.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import 'package:flutter/material.dart';

class GlowNotificationWidget extends StatelessWidget {
final Widget child;
final bool showGlowLeading;

const GlowNotificationWidget({
super.key,
required this.child,
this.showGlowLeading = true,
});

@override
Widget build(BuildContext context) {
return NotificationListener<OverscrollIndicatorNotification>(
onNotification: (OverscrollIndicatorNotification overscroll) {
overscroll.disallowIndicator();
return true;
},
child: child,
);
}
}

0 comments on commit dfae031

Please sign in to comment.