feat(App): update Finlytic Flutter app UI and blocs
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import '../../../core/network/api_client.dart';
|
||||
import '../../../core/network/signalr_service.dart';
|
||||
import '../widgets/asset_discovery_bar.dart';
|
||||
import '../widgets/daily_news_snapshot.dart';
|
||||
import '../widgets/favorites_carousel.dart';
|
||||
import '../widgets/trades_stream_widget.dart';
|
||||
|
||||
/// Dashboard Tab screen assembling user favorites, discovery bar, news snapshot, and trades stream.
|
||||
class DashboardScreen extends StatelessWidget {
|
||||
final ApiClient apiClient;
|
||||
final SignalRService signalRService;
|
||||
|
||||
const DashboardScreen({
|
||||
super.key,
|
||||
required this.apiClient,
|
||||
required this.signalRService,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
body: SingleChildScrollView(
|
||||
padding: const EdgeInsets.all(20),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
const Text('Asset Entdeckung', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 16)),
|
||||
const SizedBox(height: 8),
|
||||
AssetDiscoveryBar(apiClient: apiClient),
|
||||
const SizedBox(height: 20),
|
||||
const Text('Meine Favoriten Watchlist', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 16)),
|
||||
const SizedBox(height: 8),
|
||||
FavoritesCarousel(apiClient: apiClient),
|
||||
const SizedBox(height: 24),
|
||||
TradesStreamWidget(apiClient: apiClient),
|
||||
const SizedBox(height: 24),
|
||||
DailyNewsSnapshot(apiClient: apiClient),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user