Skip to content

Commit

Permalink
Merge pull request #1 from mitegab/mitegab-patch-1
Browse files Browse the repository at this point in the history
Update theme.dart
  • Loading branch information
mitegab authored Mar 16, 2024
2 parents 48e5bb0 + d7da79d commit a275adb
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion lib/config/theme.dart
Original file line number Diff line number Diff line change
@@ -1,25 +1,37 @@
import 'package:flutter/material.dart';

// Function to define and return custom theme data
ThemeData theme() {
return ThemeData(
// Define scaffold background color
scaffoldBackgroundColor: Color(0xFFF5F5F5),
// Define color scheme for the theme
colorScheme: ColorScheme(
// Primary color and its variant
primary: Color(0xFFFE3C5B),
primaryVariant: Color(0xFFFE3C5B),
// Secondary color and its variant
secondary: Color(0xFFe84545),
secondaryVariant: Color(0xFFe84545),
// Background and surface colors
background: Color(0xFFFFFFFF),
surface: Color(0xFFFFFFFF),
error: Color(0x000000),
// Error color
error: Color(0x000000), // This seems to be fully transparent black
// Define brightness of the theme
brightness: Brightness.light,
// Text colors for various elements
onPrimary: Color(0xFFFFFFFF),
onSecondary: Color(0xFFFFFFFF),
onError: Color(0xFF2b2e4a),
onBackground: Color(0xFF2b2e4a),
onSurface: Color(0xFF2b2e4a),
),
// Define default font family for the theme
fontFamily: 'Futura',
// Define text theme with different styles for various text elements
textTheme: TextTheme(
// Styles for headlines of different sizes
headline1: TextStyle(
color: Color(0xFF2b2e4a),
fontWeight: FontWeight.bold,
Expand Down Expand Up @@ -50,6 +62,7 @@ ThemeData theme() {
fontWeight: FontWeight.normal,
fontSize: 14,
),
// Styles for body text with different sizes
bodyText1: TextStyle(
color: Color(0xFF2b2e4a),
fontWeight: FontWeight.normal,
Expand Down

0 comments on commit a275adb

Please sign in to comment.