File tree Expand file tree Collapse file tree 4 files changed +14
-4
lines changed
packages/cosmos_ui_components/lib/components Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 1+ import 'package:cosmos_ui_components/cosmos_text_theme.dart' ;
12import 'package:cosmos_ui_components/cosmos_theme.dart' ;
23import 'package:flutter/foundation.dart' ;
34import 'package:flutter/material.dart' ;
@@ -49,7 +50,13 @@ class CosmosBottomSheetHeader extends StatelessWidget {
4950 child: Row (
5051 children: [
5152 SizedBox (width: theme.spacingM),
52- Text (title, style: titleTextStyle),
53+ Text (
54+ title,
55+ style: titleTextStyle ??
56+ CosmosTextTheme .title2Bold.copyWith (
57+ color: theme.colors.text,
58+ ),
59+ ),
5360 SizedBox (width: theme.spacingM),
5461 ],
5562 ),
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ class CosmosCheckboxTile extends StatelessWidget {
5252 Expanded (
5353 child: Text (
5454 text,
55- style: CosmosTextTheme .copyMinus1Normal,
55+ style: CosmosTextTheme .copyMinus1Normal. copyWith (color : theme.colors.text) ,
5656 ),
5757 ),
5858 ],
Original file line number Diff line number Diff line change 1+ import 'package:cosmos_ui_components/cosmos_text_theme.dart' ;
12import 'package:cosmos_ui_components/cosmos_theme.dart' ;
23import 'package:flutter/foundation.dart' ;
34import 'package:flutter/material.dart' ;
@@ -38,7 +39,9 @@ class CosmosCircleTextButton extends StatelessWidget {
3839 SizedBox (width: theme.spacingL),
3940 Text (
4041 text,
41- style: isEnabled ? null : TextStyle (color: theme.colors.inactive),
42+ style: CosmosTextTheme .copy0Normal.copyWith (
43+ color: isEnabled ? theme.colors.text : theme.colors.inactive,
44+ ),
4245 ),
4346 ],
4447 ),
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class CosmosTextButton extends StatelessWidget {
3939 style: TextButton .styleFrom (
4040 fixedSize: Size .fromHeight (height),
4141 shape: RoundedRectangleBorder (borderRadius: theme.borderRadiusM),
42- onSurface: color,
42+ onSurface: color ?? theme.colors.text ,
4343 ),
4444 child: Row (
4545 mainAxisSize: MainAxisSize .min,
You can’t perform that action at this time.
0 commit comments