25 lines
610 B
Dart
25 lines
610 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_app/resources/themes/styles/base_styles.dart';
|
|
import 'package:nylo_framework/nylo_framework.dart';
|
|
|
|
class BaseThemeConfig {
|
|
final String? id;
|
|
final String? description;
|
|
final ThemeData? theme;
|
|
final BaseColorStyles? colors;
|
|
final dynamic meta;
|
|
|
|
BaseThemeConfig(
|
|
{this.id,
|
|
this.description,
|
|
this.theme,
|
|
this.colors,
|
|
this.meta = const {}});
|
|
|
|
AppTheme toAppTheme({ThemeData? defaultTheme}) => AppTheme(
|
|
id: id!,
|
|
data: defaultTheme ?? theme!,
|
|
description: description!,
|
|
);
|
|
}
|