styles.dart 871 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import 'package:flutter/material.dart';
  2. const COLOR_PAGE_BG = Color(0xFFFFFFFF);
  3. const COLOR_PRIMARY = Color(0xFFEA2D2D);
  4. const COLOR_TEXT_2 = Color(0xFFA3A6AD);
  5. const COLOR_BORDER = Color(0xFFF2F3F5);
  6. const COLOR_TEXT_3 = Color(0xFFCACBCC);
  7. const COLOR_TEXT_1 = Color(0xFF000000);
  8. const COLOR_INPUT_BG = Color(0x1A8E8E93);
  9. const COLOR_USERNAME = Color(0xFF7D2424);
  10. const COLOR_TEXT_HINT = Color(0xFFB3B3B3);
  11. Widget appbarTitle(String title, {Color color = COLOR_TEXT_1}) {
  12. return Text(
  13. title,
  14. style: TextStyle(color: color, fontWeight: FontWeight.bold, fontSize: 18),
  15. );
  16. }
  17. AppBar appBarLight(String title, {List<Widget> actions}) {
  18. return AppBar(
  19. brightness: Brightness.light,
  20. backgroundColor: Colors.white,
  21. iconTheme: IconThemeData(color: Colors.black),
  22. title: appbarTitle(title),
  23. elevation: 0,
  24. actions: actions,
  25. );
  26. }