Skip to content

Commit

Permalink
fix: app update snackbar text color
Browse files Browse the repository at this point in the history
  • Loading branch information
gopi2401 committed Oct 7, 2024
1 parent bfb22e1 commit 88ea2e0
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,14 @@ class MyHomePageState extends State<MyHomePage> {
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
content: RichText(
text: TextSpan(children: [
const TextSpan(
TextSpan(
text: 'New version download',
style: TextStyle(fontSize: 18, color: Colors.white),
style: TextStyle(
fontSize: 18,
color: Theme.of(context).brightness == Brightness.dark
? Colors.white
: Colors.black,
),
),
TextSpan(
text: 'Link',
Expand Down Expand Up @@ -199,6 +204,11 @@ class MyHomePageState extends State<MyHomePage> {
super.dispose();
}

@override
void deactivate() {
super.deactivate();
}

@override
Widget build(BuildContext context) {
return Scaffold(
Expand Down

0 comments on commit 88ea2e0

Please sign in to comment.