Flutter Internals
English
English
  • Introduction
  • Get Involved ❗
  • Learning Path
  • 🏭Core
    • Framework
    • Types
    • Messaging
    • Platform Integration
    • Conventions
  • 🌳Data Model
    • Widgets
    • Elements
    • Render Objects
    • Boxes
  • 🎨Rendering
    • Layout
    • Compositing
    • Painting
    • Semantics
  • 👆Interaction
    • Gestures
    • Focus
  • 🎥Animation
    • Animation
  • 🏙Assets
    • Asset Management
    • Images
  • 🔠Text
    • Text Rendering
    • Text Input
    • Text Editing
  • 📜Scrolling
    • Scrollable
    • Viewports
    • Viewport Layout
  • 🥒Slivers
    • Sliver Model
    • Persistent Headers
    • Container Slivers
    • Dynamic Slivers
  • 📱User Interface
    • Containers
    • Decoration
    • Themes
    • Tables
    • Material
  • 🧠Business Logic
    • Navigation
    • State Management
    • Async Programming
    • Testing
Powered by GitBook
On this page
  • How do themes work?
  • How are colors managed?

Was this helpful?

Export as PDF
  1. 📱User Interface

Themes

TODO

How do themes work?

How are colors managed?

  • The common Color type is generally used throughout the framework. These may be organized into swatches with a single primary aRGB value and a mapping from arbitrary keys to Color instances. Material provides a specialization called MaterialColor which uses an index value as key and limits the map to ten entries (50, 100, 200, ... 900), with larger indices being associated with darker shades. These are further organized into a standard set of colors and swatches within the Colors class.

PreviousDecorationNextTables

Last updated 5 years ago

Was this helpful?