Home
last modified time | relevance | path

Searched refs:colorScheme (Results 1 – 25 of 33) sorted by relevance

12

/third_party/flutter/flutter/examples/flutter_gallery/lib/gallery/
Dthemes.dart21 final ColorScheme colorScheme = const ColorScheme.dark().copyWith(
40 colorScheme: colorScheme,
54 final ColorScheme colorScheme = const ColorScheme.light().copyWith(
61 colorScheme: colorScheme,
74 colorScheme: colorScheme,
/third_party/flutter/flutter/packages/flutter/test/material/
Dtoggle_buttons_test.dart43 theme.colorScheme.onSurface.withOpacity(0.87),
48 expect(textStyleTwo.style.color, theme.colorScheme.primary);
89 theme.colorScheme.onSurface.withOpacity(0.87),
94 expect(textStyleTwo.style.color, theme.colorScheme.primary);
106 theme.colorScheme.onSurface.withOpacity(0.87),
113 theme.colorScheme.onSurface.withOpacity(0.87),
148 theme.colorScheme.onSurface.withOpacity(0.38),
155 theme.colorScheme.onSurface.withOpacity(0.38),
169 theme.colorScheme.onSurface.withOpacity(0.38),
176 theme.colorScheme.onSurface.withOpacity(0.38),
[all …]
Dbutton_theme_test.dart46 ColorScheme colorScheme;
58 colorScheme = theme.colorScheme;
83 expect(colorScheme, ThemeData.light().colorScheme);
98 expect(theme.colorScheme, null);
108 colorScheme: const ColorScheme.dark(),
117 expect(theme.colorScheme, const ColorScheme.dark());
352 const ColorScheme colorScheme = ColorScheme.light();
359 colorScheme: colorScheme.copyWith(
Dbanner_theme_test.dart146 final ColorScheme colorScheme = const ColorScheme.light().copyWith(surface: Colors.purple);
148 theme: ThemeData(colorScheme: colorScheme),
163 expect(container.decoration, BoxDecoration(color: colorScheme.surface));
Dflat_button_test.dart85 final ColorScheme colorScheme = ColorScheme.fromSwatch(primarySwatch: Colors.blue);
104 colorScheme: colorScheme,
Dfloating_action_button_theme_test.dart27 expect(_getRawMaterialButton(tester).fillColor, ThemeData().colorScheme.secondary);
28 expect(_getRichText(tester).text.style.color, ThemeData().colorScheme.onSecondary);
Dmaterial_test.dart226 colorScheme: const ColorScheme.dark().copyWith(surface: surfaceColor),
256 colorScheme: const ColorScheme.dark().copyWith(surface: surfaceColor),
270 …testWidgets('overlay will only apply to materials using colorScheme.surface', (WidgetTester tester…
275 colorScheme: const ColorScheme.dark().copyWith(surface: const Color(0xFF121212)),
Dtheme_data_test.dart142 final ThemeData theme = ThemeData.from(colorScheme: lightColors);
158 final ThemeData theme = ThemeData.from(colorScheme: darkColors);
Dtoggle_buttons_theme_test.dart144 expect(theme.colorScheme.onSurface, isNot(enabledColor));
178 expect(theme.colorScheme.primary, isNot(selectedColor));
Doutline_button_test.dart88 final ColorScheme colorScheme = ColorScheme.fromSwatch(primarySwatch: Colors.blue);
107 colorScheme: colorScheme,
/third_party/flutter/flutter/packages/flutter/lib/src/material/
Dsnack_bar.dart253 final ColorScheme colorScheme = theme.colorScheme;
261 ? colorScheme.onSurface
262 : Color.alphaBlend(colorScheme.onSurface.withOpacity(0.80), colorScheme.surface);
266 colorScheme: ColorScheme(
267 primary: colorScheme.onPrimary,
268 primaryVariant: colorScheme.onPrimary,
271 secondary: isThemeDark ? colorScheme.primaryVariant : colorScheme.secondary,
272 secondaryVariant: colorScheme.onSecondary,
273 surface: colorScheme.onSurface,
275 error: colorScheme.onError,
[all …]
Dbutton_theme.dart69 /// The [textTheme], [minWidth], [height], and [colorScheme] arguments
86 ColorScheme colorScheme,
108 colorScheme: colorScheme,
151 ColorScheme colorScheme,
172 colorScheme: colorScheme,
189 if (buttonTheme?.colorScheme == null) { // if buttonTheme or buttonTheme.colorScheme is null
192 if (buttonTheme.colorScheme == null) {
194 colorScheme: theme.buttonTheme.colorScheme ?? theme.colorScheme,
196 assert(buttonTheme.colorScheme != null);
236 this.colorScheme,
[all …]
Dtheme_data.dart173 ColorScheme colorScheme,
204 colorScheme ??= ColorScheme.fromSwatch(
255 colorScheme: colorScheme,
341 colorScheme: colorScheme,
416 @required this.colorScheme,
475 assert(colorScheme != null),
485 /// Create a [ThemeData] based on the colors in the given [colorScheme] and
488 /// The [colorScheme] can not be null.
490 /// If [colorScheme.brightness] is [Brightness.dark] then
505 /// theme: ThemeData.from(colorScheme: ColorScheme.light()),
[all …]
Dtoggle_buttons.dart226 /// Theme.of(context).colorScheme.onSurface is used.
238 /// Theme.of(context).colorScheme.primary is used.
249 /// Theme.of(context).colorScheme.onSurface.withOpacity(0.38) is used.
318 /// Theme.of(context).colorScheme.onSurface is used.
326 /// Theme.of(context).colorScheme.primary is used.
437 ?? theme.colorScheme.onSurface.withOpacity(0.12),
444 ?? theme.colorScheme.onSurface.withOpacity(0.12),
451 ?? theme.colorScheme.onSurface.withOpacity(0.12),
472 ?? theme.colorScheme.onSurface.withOpacity(0.12),
479 ?? theme.colorScheme.onSurface.withOpacity(0.12),
[all …]
Dslider.dart512 // colors come from the ThemeData.colorScheme. These colors, along with
517 … activeTrackColor: widget.activeColor ?? sliderTheme.activeTrackColor ?? theme.colorScheme.primary,
518 …Color: widget.inactiveColor ?? sliderTheme.inactiveTrackColor ?? theme.colorScheme.primary.withOpa…
519 …disabledActiveTrackColor: sliderTheme.disabledActiveTrackColor ?? theme.colorScheme.onSurface.with…
520 …disabledInactiveTrackColor: sliderTheme.disabledInactiveTrackColor ?? theme.colorScheme.onSurface.…
521 …olor: widget.inactiveColor ?? sliderTheme.activeTickMarkColor ?? theme.colorScheme.onPrimary.withO…
522 …olor: widget.activeColor ?? sliderTheme.inactiveTickMarkColor ?? theme.colorScheme.primary.withOpa…
523 …disabledActiveTickMarkColor: sliderTheme.disabledActiveTickMarkColor ?? theme.colorScheme.onPrimar…
524 …disabledInactiveTickMarkColor: sliderTheme.disabledInactiveTickMarkColor ?? theme.colorScheme.onSu…
525 thumbColor: widget.activeColor ?? sliderTheme.thumbColor ?? theme.colorScheme.primary,
[all …]
Drange_slider.dart524 // colors come from the ThemeData.colorScheme. These colors, along with
529 … activeTrackColor: widget.activeColor ?? sliderTheme.activeTrackColor ?? theme.colorScheme.primary,
530 …Color: widget.inactiveColor ?? sliderTheme.inactiveTrackColor ?? theme.colorScheme.primary.withOpa…
531 …disabledActiveTrackColor: sliderTheme.disabledActiveTrackColor ?? theme.colorScheme.onSurface.with…
532 …disabledInactiveTrackColor: sliderTheme.disabledInactiveTrackColor ?? theme.colorScheme.onSurface.…
533 …olor: widget.inactiveColor ?? sliderTheme.activeTickMarkColor ?? theme.colorScheme.onPrimary.withO…
534 …olor: widget.activeColor ?? sliderTheme.inactiveTickMarkColor ?? theme.colorScheme.primary.withOpa…
535 …disabledActiveTickMarkColor: sliderTheme.disabledActiveTickMarkColor ?? theme.colorScheme.onPrimar…
536 …disabledInactiveTickMarkColor: sliderTheme.disabledInactiveTickMarkColor ?? theme.colorScheme.onSu…
537 thumbColor: widget.activeColor ?? sliderTheme.thumbColor ?? theme.colorScheme.primary,
[all …]
Dbanner.dart80 /// also `null`, [ThemeData.colorScheme.surface] is used.
130 ?? theme.colorScheme.surface;
/third_party/flutter/flutter/examples/flutter_gallery/lib/demo/material/
Dcards_demo.dart139 splashColor: Theme.of(context).colorScheme.onSurface.withOpacity(0.12),
173 final ColorScheme colorScheme = Theme.of(context).colorScheme;
197 splashColor: colorScheme.onSurface.withOpacity(0.12),
206 ? colorScheme.primary.withOpacity(0.08)
216 color: _isSelected ? colorScheme.primary : Colors.transparent,
Dslider_demo.dart315 inactiveTrackColor: theme.colorScheme.onSurface.withOpacity(0.5),
316 activeTickMarkColor: theme.colorScheme.onSurface.withOpacity(0.7),
317 inactiveTickMarkColor: theme.colorScheme.surface.withOpacity(0.7),
318 overlayColor: theme.colorScheme.onSurface.withOpacity(0.12),
323 … valueIndicatorTextStyle: theme.accentTextTheme.body2.copyWith(color: theme.colorScheme.onSurface),
/third_party/flutter/skia/third_party/externals/sdl/include/
DSDL_messagebox.h102 …const SDL_MessageBoxColorScheme *colorScheme; /**< ::SDL_MessageBoxColorScheme, can be NULL to u… member
/third_party/flutter/flutter/examples/flutter_gallery/lib/demo/shrine/
Dapp.dart89 colorScheme: kShrineColorScheme,
98 colorScheme: kShrineColorScheme,
/third_party/flutter/flutter/examples/flutter_gallery/lib/demo/fortnightly/
Dfortnightly.dart44 color: Theme.of(context).colorScheme.surface,
93 color: Theme.of(context).colorScheme.surface,
/third_party/flutter/flutter/packages/flutter/lib/src/cupertino/
Dtheme.dart161 /// derived from the Material [ThemeData]'s `colorScheme.primary`. However, in
177 /// will be derived from the Material [ThemeData]'s `colorScheme.onPrimary`.
/third_party/flutter/skia/third_party/externals/sdl/src/core/android/
DSDL_android.c1555 if (messageboxdata->colorScheme) { in Android_JNI_ShowMessageBox()
1559 (messageboxdata->colorScheme->colors[i].r << 16) | in Android_JNI_ShowMessageBox()
1560 (messageboxdata->colorScheme->colors[i].g << 8) | in Android_JNI_ShowMessageBox()
1561 (messageboxdata->colorScheme->colors[i].b << 0); in Android_JNI_ShowMessageBox()
/third_party/flutter/skia/third_party/externals/sdl/src/video/x11/
DSDL_x11messagebox.c211 if ( messageboxdata->colorScheme ) { in X11_MessageBoxInit()
212 colorhints = messageboxdata->colorScheme->colors; in X11_MessageBoxInit()

12