feat(App): update Finlytic Flutter app UI and blocs
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:finlytic_app/features/news/models/news_article_model.dart';
|
||||
|
||||
abstract class NewsEvent extends Equatable {
|
||||
const NewsEvent();
|
||||
|
||||
@override
|
||||
List<Object?> get props => [];
|
||||
}
|
||||
|
||||
class FetchNews extends NewsEvent {
|
||||
final bool isRefresh;
|
||||
final String? symbol;
|
||||
final String? isin;
|
||||
final String? date;
|
||||
|
||||
const FetchNews({this.isRefresh = false, this.symbol, this.isin, this.date});
|
||||
|
||||
@override
|
||||
List<Object?> get props => [isRefresh, symbol, isin, date];
|
||||
}
|
||||
|
||||
class LoadMoreNews extends NewsEvent {}
|
||||
|
||||
class ReceiveLiveNews extends NewsEvent {
|
||||
final NewsArticleModel article;
|
||||
|
||||
const ReceiveLiveNews(this.article);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [article];
|
||||
}
|
||||
Reference in New Issue
Block a user