FlutterPlaza / FinFlow

MIT License
5 stars 7 forks source link

chore(global): breaking changes to the UI and theming strategy #90

Closed fonkamloic closed 1 year ago

fonkamloic commented 1 year ago

AppColors has been scope only to the themeData Styling now is only possible via themeData So all build should define (if needed)

@override   Widget build(BuildContext context) {     
final l10n = context.l10n;     
final theme = Theme.of(context);     
final style = theme.textTheme;     
final colors = theme.colorScheme;     
final bloc = context.read<BlocInQuestionBloc>();  // .read , .select, .watch; depending on the usecase.

... use colors.primary etc now instead of Appcolors.pimaryColor in your PR. use bloc.add() instead of context.read().add();

Type of Change

Pre-launch Checklist

fonkamloic commented 1 year ago

Done