Skip to content

Commit

Permalink
improve migration handler
Browse files Browse the repository at this point in the history
  • Loading branch information
waozixyz committed Sep 23, 2024
1 parent 67c52b2 commit 3066fd3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/widgets/migration_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ import 'package:flutter/foundation.dart';
import 'dart:async';
import 'package:universal_html/html.dart' if (dart.library.html) 'dart:html'
as html;

class MigrationHandler extends StatefulWidget {
@override
_MigrationHandlerState createState() => _MigrationHandlerState();
}
class MigrationHandler extends StatefulWidget {
final String? data;

Expand Down Expand Up @@ -47,7 +42,7 @@ class _MigrationHandlerState extends State<MigrationHandler> {
_message = 'Data migration completed successfully!';
});

// Redirect to home page after successful migration
// Delay navigation to show success message
Future.delayed(Duration(seconds: 2), () {
context.go('/home');
});
Expand Down

0 comments on commit 3066fd3

Please sign in to comment.