final_widget.dart 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import 'package:flutter/material.dart';
  2. class O2UI {
  3. //color
  4. static const Color backgroundColor = Color(0xFFF5F5F5);
  5. static const Color splitLineColor = Color(0xFFE0E0E0);
  6. static const Color textHintColor = Color(0xFF999999);
  7. static const Color textPrimaryColor = Color(0xFF666666);
  8. static const Color textPrimaryDarkColor = Color(0xFF333333);
  9. static const Color iconColor = Color(0xFF4D4D4D);
  10. static const Color dividerColor = Colors.black26;
  11. static const Color taskGroupDarkBackgroundColor =
  12. Color.fromARGB(255, 45, 53, 55);
  13. static const Color noteDarkBackgroundColor = Color.fromARGB(255, 61, 69, 71);
  14. //style
  15. static const TextStyle hintTextStyle = TextStyle(color: textHintColor);
  16. static const TextStyle primaryTextStyle = TextStyle(color: textPrimaryColor);
  17. static const TextStyle whiteTextStyle = TextStyle(color: Colors.white);
  18. static const TextStyle calendarWeeklyStyle =
  19. TextStyle(color: textHintColor, fontSize: 14);
  20. static const TextStyle calendarNormalStyle =
  21. TextStyle(color: textPrimaryColor, fontSize: 12);
  22. static const TextStyle calendarNotThisMonthStyle =
  23. TextStyle(color: textHintColor, fontSize: 12);
  24. static const TextStyle calendarSelected =
  25. TextStyle(color: Colors.white, fontSize: 12);
  26. static const TextStyle fontTitleSize = TextStyle(fontSize: 18);
  27. //widget
  28. static final Widget separatorView = Container(
  29. height: 0.5,
  30. color: dividerColor,
  31. );
  32. static const Widget divider = SizedBox(height: 32.0);
  33. static const Widget dividerLine = SizedBox(height: 1.0);
  34. static const Widget emptyDataView =
  35. Center(child: Text('空空如也!', style: O2UI.hintTextStyle));
  36. }