mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-24 19:17:55 +00:00
Redesigned Splash Screen and Login Screen
This commit is contained in:
@@ -10,6 +10,9 @@ extension ContextExtension on BuildContext {
|
||||
|
||||
double get height => MediaQuery.sizeOf(this).height;
|
||||
|
||||
InputDecorationTheme get inputDecoration =>
|
||||
Theme.of(this).inputDecorationTheme;
|
||||
|
||||
TextStyle get displayLarge => Theme.of(this).textTheme.displayLarge!;
|
||||
|
||||
TextStyle get displayMedium => Theme.of(this).textTheme.displayMedium!;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:syncrow_app/utils/context_extension.dart';
|
||||
|
||||
import 'font_manager.dart';
|
||||
|
||||
@@ -85,3 +86,18 @@ TextStyle getTextStyleExtraBold({
|
||||
color: color,
|
||||
fontWeight: fontWeight,
|
||||
);
|
||||
|
||||
///inputDecoration
|
||||
|
||||
InputDecoration defaultInputDecoration(BuildContext context, {String? hint}) =>
|
||||
InputDecoration(
|
||||
enabledBorder: context.inputDecoration.enabledBorder,
|
||||
focusedBorder: context.inputDecoration.enabledBorder,
|
||||
errorBorder: context.inputDecoration.errorBorder,
|
||||
focusedErrorBorder: context.inputDecoration.enabledBorder,
|
||||
hintText: hint,
|
||||
hintStyle: context.inputDecoration.hintStyle,
|
||||
filled: context.inputDecoration.filled,
|
||||
fillColor: context.inputDecoration.fillColor,
|
||||
contentPadding: context.inputDecoration.contentPadding,
|
||||
);
|
||||
|
||||
@@ -141,19 +141,32 @@ abstract class ThemeManager {
|
||||
// ),
|
||||
|
||||
///input decoration theme
|
||||
inputDecorationTheme: const InputDecorationTheme(
|
||||
border: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.all(Radius.circular(8)),
|
||||
),
|
||||
inputDecorationTheme: InputDecorationTheme(
|
||||
enabledBorder: OutlineInputBorder(
|
||||
borderSide: BorderSide(color: Colors.grey),
|
||||
borderRadius: BorderRadius.all(Radius.circular(8)),
|
||||
borderSide: BorderSide.none,
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
),
|
||||
focusedBorder: OutlineInputBorder(
|
||||
borderSide: BorderSide(color: ColorsManager.primaryColor),
|
||||
borderRadius: BorderRadius.all(Radius.circular(8)),
|
||||
borderSide: BorderSide.none,
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
),
|
||||
labelStyle: TextStyle(
|
||||
focusedErrorBorder: OutlineInputBorder(
|
||||
borderSide: BorderSide.none,
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
),
|
||||
errorBorder: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
borderSide: const BorderSide(color: Colors.red)),
|
||||
hintStyle: const TextStyle(
|
||||
fontFamily: FontsManager.fontFamily,
|
||||
fontSize: FontSize.s14,
|
||||
fontWeight: FontsManager.regular,
|
||||
color: ColorsManager.textPrimaryColor,
|
||||
),
|
||||
filled: true,
|
||||
fillColor: Colors.white,
|
||||
contentPadding: const EdgeInsets.all(10),
|
||||
labelStyle: const TextStyle(
|
||||
fontFamily: FontsManager.fontFamily,
|
||||
color: Colors.grey,
|
||||
fontSize: FontSize.s16,
|
||||
|
||||
Reference in New Issue
Block a user