Skip to content

Commit

Permalink
undo MyApp to be statelessWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
AlaaElattar committed Oct 2, 2024
1 parent 9635046 commit 60a5dda
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ Future<void> setGlobalValues() async {
(identity['signedIdentityNameIdentifier'] != null);
}

class MyApp extends StatefulWidget {
const MyApp({
class MyApp extends StatelessWidget {
const MyApp({
super.key,
required this.initDone,
this.doubleName,
Expand All @@ -76,16 +76,6 @@ class MyApp extends StatefulWidget {
final String? doubleName;
final bool registered;

@override
State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}

@override
Widget build(BuildContext context) {
final themeProvider = Provider.of<ThemeProvider>(context);
Expand Down Expand Up @@ -157,7 +147,7 @@ class _MyAppState extends State<MyApp> {
),
themeMode: themeProvider.themeMode,
home: SplashScreen(
initDone: widget.initDone, registered: widget.registered),
initDone: initDone, registered: registered),
);
}
}

0 comments on commit 60a5dda

Please sign in to comment.