- Clean architecture with feature-based organization - Riverpod state management, Dio HTTP, GoRouter navigation - Dashboard, blocks, wallet, transactions, mining screens - Dark crypto theme with JetBrains Mono font
26 lines
621 B
Dart
26 lines
621 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
|
|
import 'core/theme/app_theme.dart';
|
|
import 'routing/app_router.dart';
|
|
|
|
void main() {
|
|
runApp(const ProviderScope(child: BlockchainApp()));
|
|
}
|
|
|
|
class BlockchainApp extends ConsumerWidget {
|
|
const BlockchainApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context, WidgetRef ref) {
|
|
final router = ref.watch(appRouterProvider);
|
|
|
|
return MaterialApp.router(
|
|
title: 'Blockchain Explorer',
|
|
theme: AppTheme.darkTheme,
|
|
routerConfig: router,
|
|
debugShowCheckedModeBanner: false,
|
|
);
|
|
}
|
|
}
|