Results for “Color”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
Version changes
- Introduce new ColorScheme roles3.22.0breaking
color roles in `ColorScheme` include seven tone-based surfaces and containers, and twelve accent colors for primary, secondary, and tertiary groups. This update deprecates three existing
- Color wide gamut support3.27.0breaking
being added to the framework. ### 8-bit unsigned integer constructors Constructors like `Color.fromARGB` remain unchanged and have continued support. To take advantage of Display P3 colors
- Migrating to Material 33.16.0breaking
values for `ThemeData.colorScheme` are updated to match the Material 3 Design spec. The `ColorScheme.fromSeed` constructor generates a `ColorScheme` derived from the given `seedColor`. The colors generated
- ThemeData's accent properties have been deprecated2.5.0deprecated
accentColor: myColor), // ... ); ``` Code after migration: ```dart final ThemeData theme = ThemeData(); MaterialApp( theme: theme.copyWith( colorScheme: theme.colorScheme.copyWith(secondary: myColor), ), //... ) ``` ### `accentColor` The closest backwards compatible [`ColorScheme`][] color is [`ColorScheme.secondary
- Material 3 Tokens Update in Flutter3.27.0breaking
differences in the mappings of the color roles are small. Use `ColorScheme.copyWith` to revert to the original default colors: Code before migration: ```dart final ColorScheme colors
- ListTile reports an error in debug when wrapped in a colored widget3.44.0breaking
widget with a non-transparent background color, such as a `Container` or `ColoredBox` that sets `color`, sits between a `ListTile` and its nearest `Material` ancestor
- Container color optimization1.17.0breaking
ColoredBox` widget has been added to the framework, and the `Container` widget has been optimized to use it if a user specifies a `color` instead
- Deprecate app bar color3.35.0deprecated
constructors and `copyWith` methods. Code before migration: ```dart // AppBarTheme constructor AppBarTheme( color: Colors.blue, elevation: 4.0, ) // AppBarTheme copyWith theme.copyWith( color: Colors.red, elevation: 2.0, ) // AppBarThemeData constructor AppBarThemeData( color
- - Fixes an issue in the `ColorScheme.fromSeed` method to respect the seed color even if the seed color is very bright.3.22.2bugfix
Fixes an issue in the `ColorScheme.fromSeed` method to respect the seed color even if the seed color is very bright
- CupertinoDynamicColor wide gamut support3.38.0breaking
round().clamp(0, 255); } const CupertinoDynamicColor color = CupertinoColors.systemBlue; final intRed = _floatToInt8(color.r); final intGreen = _floatToInt8(color.g); final intBlue = _floatToInt8(color.b); ``` ### Opacity Before
- New Buttons and Button Themes1.20.0breaking
TextButton` look like a default `FlatButton`: ```dart final ButtonStyle flatButtonStyle = TextButton.styleFrom( foregroundColor: Colors.black87, minimumSize: Size(88, 36), padding: EdgeInsets.symmetric(horizontal: 16), shape: const RoundedRectangleBorder( borderRadius: BorderRadius.all(Radius.circular
- Updated default text styles for menus3.16.0breaking
The default text styles used for menus are updated to match the
- Use Color.a instead of Color.alpha to assert the opacity of the color…3.44.0improvement
Color.a instead of Color.alpha to assert the opacity of the color… (Framework, by @ahmedsameha1
- ThemeData's toggleableActiveColor property has been deprecated3.7.0deprecated
Material widgets `Switch`, `SwitchListTile`, `Checkbox`, `CheckboxListTile`, `Radio`, `RadioListTile` now use `ColorScheme.secondary` color for their toggleable widget. `ThemeData.toggleableActiveColor` is deprecated and will eventually be removed. The widgets using
- Colored box optimization (#176028)3.41.0performance
Colored box optimization (#176028) (Framework, by @definev
- Updated Checkbox.fillColor behavior3.13.0breaking
background in the unselected state. To get the previous behavior, set `Checkbox.fillColor` to `Colors.transparent` in the unselected state and set `Checkbox.side` to the desired color
- TextSelectionTheme migration2.0.0breaking
After | |--------------------------------------|-----------------------------------------------| | `ThemeData.cursorColor` | `TextSelectionThemeData.cursorColor` | | `ThemeData.textSelectionColor` | `TextSelectionThemeData.selectionColor` | | `ThemeData.textSelectionHandleColor` | `TextSelectionThemeData.selectionHandleColor` | **Code before migration:** ```dart ThemeData( cursorColor: Colors.red, textSelectionColor: Colors.green, textSelectionHandleColor: Colors.blue, ) ``` **Code after migration:** ```dart
- Support mixed color spaces in `Color.lerp`3.44.0platform
Support mixed color spaces in `Color.lerp` (Web, by @spydon). Color.lerp
- Deprecated API removed after v3.73.10.0removed
stable release have been removed. Code before migration: ```dart var myTheme = ThemeData( //... accentColor: Colors.blue, //... ); var color = myTheme.accentColor; ``` Code after migration: ```dart var myTheme = ThemeData( //... colorScheme: ColorScheme( //... secondary
- Material 3 tokens update3.41.0breaking
have to manually set those properties to their desired color after generating. ColorScheme.fromSeed ColorScheme.fromImageProvider
- Added useOriginalColors flag which allows ImageIcon to bypass IconTheme colorization and use the original colors3.47.0new-feature
Added useOriginalColors flag which allows ImageIcon to bypass IconTheme colorization and use the original colors (Framework, by @zawhtetnaing10). ImageIcon IconTheme
- - Fixes AnimatedOpacity affecting blended color overlay render3.16.5bugfix
Fixes AnimatedOpacity affecting blended color overlay render
- Add saturation ColorFilter.3.41.0new-feature
saturation ColorFilter. (Framework, by @ksokolovskyi). ColorFilter
- - [Impeller] Fixes visual glitches and crashes when using wide gamut color support on iOS.3.10.1bugfix
Impeller] Fixes visual glitches and crashes when using wide gamut color support
- - [Impeller] Fixes an issue causing noise when using combinations of UV mapping and color blending.3.10.3bugfix
Impeller] Fixes an issue causing noise when using combinations of UV mapping and color blending
- Deprecated API removed after v3.103.13.0removed
stable release have been removed. ThemeData.fixTextFieldOutlineLabel ThemeData OverscrollIndicatorNotification.disallowGlow StretchingOverscrollIndicator GlowingOverscrollIndicator OverscrollIndicatorNotification ColorScheme.primaryVariant ColorScheme.secondaryVariant ColorScheme.primaryContainer ColorScheme.secondaryContainer ColorScheme ThemeData.primaryColorBrightness Brightness ThemeData.primaryColor ThemeData.brightness Theme RawScrollbar Scrollbar ScrollbarThemeData CupertinoScrollbar Scrollbar.hoverThickness MaterialStateProperty ScrollbarThemeData.thickness
- Make sure that a ColorFiltered doesn't crash 0x0 environment3.41.0bugfix
Make sure that a ColorFiltered doesn't crash 0x0 environment (Framework, by @ahmedsameha1). ColorFiltered
- Raw images on Web uses correct origin and colors2.10.0breaking
ui.ImageDescriptor.raw` or `ui.decodeImageFromPixels`, causing the resulting images to be upside-down and incorrectly colored (whose red and blue channels are swapped.) The `pixels` argument of `ui.ImageDescriptor.raw
- Manually roll material_color_utilities3.41.0improvement
Manually roll material_color_utilities (Material, by @kevmoo
- Deprecate ThemeData.dialogBackgroundColor in favor of DialogThemeData.backgroundColor3.29.0deprecated
default dialog background color. Code before migration: ```dart theme: ThemeData( dialogBackgroundColor: Colors.orange, ), ``` Code after migration: ```dart theme: ThemeData( dialogTheme: const DialogThemeData(backgroundColor: Colors.orange), ), ``` ThemeData.dialogBackgroundColor DialogThemeData.backgroundColor Dialog AlertDialog
- fix: ColorScheme will removeListener on imageStream twice if there is error loading the image.3.38.0bugfix
ColorScheme will removeListener on imageStream twice if there is error loading the image. (Material, by @dkwingsmt). ColorScheme
- Fix default overlay color in `TabBar`3.38.0bugfix
default overlay color in `TabBar` (Material, by @ValentinVignal). TabBar
- Deprecate ThemeData.indicatorColor in favor of TabBarThemeData.indicatorColor3.32.0deprecated
ThemeData.useMaterial3`][] flag is set to `false`. Code before migration: ```dart theme: ThemeData( indicatorColor: Colors.red, useMaterial3: false, ), ``` Code after migration: ```dart theme: ThemeData( tabBarTheme: const TabBarThemeData(indicatorColor: Colors.red), useMaterial3
- FloatingActionButton and ThemeData's accent properties1.17.0breaking
accentIconTheme`. Code before migration: ```dart MaterialApp( theme: ThemeData( accentIconTheme: IconThemeData(color: Colors.red), ), ) ``` Code after migration: ```dart MaterialApp( theme: ThemeData( floatingActionButtonTheme: FloatingActionButtonThemeData( foregroundColor: Colors.red, ), ), ) ``` FloatingActionButton ThemeData Theme ColorScheme
- Makes it so ubersdf contents can be collapsed to clear colors.3.47.0improvement
Makes it so ubersdf contents can be collapsed to clear colors. (Other changes, by @gaaclarke
- Improve Container color/decoration error message clarity3.41.0improvement
Improve Container color/decoration error message clarity (Framework, by @777genius
- Fix ShapeDecoration.lerp crash when interpolating between gradient and color3.47.0bugfix
ShapeDecoration.lerp crash when interpolating between gradient and color (Framework, by @ishivamg). ShapeDecoration.lerp
- [web] Fix image and color filters equality in SkWASM.3.38.0bugfix
image and color filters equality in SkWASM. (Web, by @ksokolovskyi
- Add support for high contrast and color inversion on Android3.47.0new-feature
support for high contrast and color inversion on Android (Framework, by @xxxOVALxxx
- Adds sdf rrects (and fixes opacity + color source)3.47.0bugfix
Adds sdf rrects (and fixes opacity + color source) (Other changes, by @gaaclarke
- Add warning when there is a widget with color between `Material` and `ListTile`3.44.0new-feature
warning when there is a widget with color between `Material` and `ListTile` (Material, by @QuncCccccc). Material ListTile
- Replace opacity from random color in navigation bar test3.41.0improvement
Replace opacity from random color in navigation bar test (Material, by @AbdeMohlbi
- Fix: Active step fully colored in vertical mode3.38.0bugfix
Active step fully colored in vertical mode (Material, by @rkishan516
- Add non-text color contrast evaluation for a11y3.44.0new-feature
text color contrast evaluation for a11y (Framework, by @QuncCccccc
- [a11y assessment app] Use default color for banner3.47.0improvement
a11y assessment app] Use default color for banner (Material, by @hannah
- Fix misleading error message for color/decoration conflict (relands #180325)3.44.0bugfix
misleading error message for color/decoration conflict (relands #180325) (Framework, by @dkwingsmt
- Fix `todayBorder` todayBorder color is incorrectly overridden by `todayForegroundColor` in CalendarDatePicker3.44.0bugfix
todayBorder` todayBorder color is incorrectly overridden by `todayForegroundColor` in CalendarDatePicker (Material, by @huycozy). CalendarDatePicker
- [Impeller] Add the paint color to the key of the text shadow cache3.41.0performance
Impeller] Add the paint color to the key of the text shadow cache (Framework, by @jason-simmons
- Replace rendering for solid color circles (both filled and stroked) to use SDFs3.41.0improvement
Replace rendering for solid color circles (both filled and stroked) to use SDFs (Other changes, by @walley892
- Fix P3-to-sRGB color conversion to operate in linear light3.44.0bugfix
sRGB color conversion to operate in linear light (Framework, by @westito
- [a11y][VPAT] Update toggle button color in a11y assessment app3.47.0improvement
a11y][VPAT] Update toggle button color in a11y assessment app (Other changes, by @hannah
- Page transitions replaced by ZoomPageTransitionsBuilder3.0.0breaking
builders explicitly for the target platforms. Code before migration: ```dart MaterialApp( theme: ThemeData(colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple)), ) ``` Code after migration: ```dart MaterialApp( theme: ThemeData( pageTransitionsTheme: const PageTransitionsTheme( builders
- [Impeller] Always use RGBA8888 format in the Skia bitmap used to draw a color glyph atlas3.47.0improvement
Impeller] Always use RGBA8888 format in the Skia bitmap used to draw a color glyph atlas (Other changes, by @jason-simmons
- Migrate to standalone material_ui and cupertino_ui packagesunreleasedbreaking
The Material and Cupertino design libraries are now available as standalone packages
- Rename MaterialState to WidgetState3.22.0breaking
BorderSide side = MaterialStateBorderSide.resolveWith((Set states) { if (states.contains(MaterialState.selected)) { return const BorderSide(color: Colors.red); } return null; }); ``` Code after migration: ```dart WidgetState selected = WidgetState.selected; final WidgetStateProperty backgroundColor; class _MouseCursor
- Clip behavior2.0.0breaking
Flutter now defaults to _not_ clip except for a few specialized widgets
- Deprecated API removed after v3.193.22.0removed
stable release have been removed. TextTheme TextStyle ThemeData Color ThemeData.colorScheme BottomAppBarTheme ColorScheme CupertinoContextMenu.previewBuilder CupertinoContextMenu CupertinoContextMenu.animationOpensAt Scrollbar.showTrackOnHover Scrollbar ScrollbarThemeData.showTrackOnHover ScrollbarThemeData.trackVisibility ScrollbarThemeData MaterialState MaterialStateProperty KeepAliveHandle.release KeepAliveHandle InteractiveViewer.alignPanAxis InteractiveViewer PanAxis