master #81
@ -42,7 +42,7 @@ class NavigationItem extends StatelessWidget {
|
||||
context
|
||||
.themeExtension<TopBarThemeExtension>()
|
||||
?.secondaryColor,
|
||||
Theme.of(context).primaryColor,
|
||||
context.colorScheme.primary
|
||||
],
|
||||
valueValidator: (value) => value != null,
|
||||
transform: (value) => value,
|
||||
|
@ -25,7 +25,7 @@ part 'text_input.g.dart';
|
||||
|
||||
@ComponentCopyWithExtension()
|
||||
class TextInput extends TextInputComponent with $TextInputCWMixin {
|
||||
TextInput({
|
||||
const TextInput({
|
||||
super.expand,
|
||||
super.validator,
|
||||
super.key,
|
||||
|
@ -0,0 +1,37 @@
|
||||
// Copyright (C) 2023 WYATT GROUP
|
||||
// Please see the AUTHORS file for details.
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
import 'package:wyatt_ui_components/wyatt_wyatt_ui_components.dart';
|
||||
import 'package:wyatt_ui_kit/wyatt_ui_kit.dart';
|
||||
|
||||
class WyattComponentThemeData {
|
||||
static ComponentThemeData get wyattComponentThemeData =>
|
||||
ComponentThemeData.raw(
|
||||
appBar: const TopAppBar(),
|
||||
topNavigationBarComponent: const TopNavigationBar(),
|
||||
loaderComponent: const Loader(),
|
||||
richTextBuilderComponent: const RichTextBuilder(),
|
||||
textInputComponent: const TextInput(),
|
||||
fileSelectionButtonComponent: FileSelectionButton(),
|
||||
flatButtonComponent: FlatButton(),
|
||||
simpleIconButtonComponent: SimpleIconButton(),
|
||||
symbolButtonComponent: SymbolButton(),
|
||||
informationCardComponent: const InformationCard(),
|
||||
portfolioCardComponent: const PortfolioCard(),
|
||||
quoteCardComponent: const QuoteCard(),
|
||||
skillCardComponent: const SkillCard(),
|
||||
);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user