constants.dart 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright 2021 The Flutter team. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. import 'package:flutter/material.dart';
  5. // NavigationRail shows if the screen width is greater or equal to
  6. // narrowScreenWidthThreshold; otherwise, NavigationBar is used for navigation.
  7. const double narrowScreenWidthThreshold = 450;
  8. const double mediumWidthBreakpoint = 1000;
  9. const double largeWidthBreakpoint = 1500;
  10. const double transitionLength = 500;
  11. enum ColorSeed {
  12. baseColor('M3 Baseline', Color(0xff6750a4)),
  13. indigo('Indigo', Colors.indigo),
  14. blue('Blue', Colors.blue),
  15. teal('Teal', Colors.teal),
  16. green('Green', Colors.green),
  17. yellow('Yellow', Colors.yellow),
  18. orange('Orange', Colors.orange),
  19. deepOrange('Deep Orange', Colors.deepOrange),
  20. pink('Pink', Colors.pink);
  21. const ColorSeed(this.label, this.color);
  22. final String label;
  23. final Color color;
  24. }
  25. enum ScreenSelected {
  26. component(0),
  27. color(1),
  28. typography(2),
  29. elevation(3);
  30. const ScreenSelected(this.value);
  31. final int value;
  32. }