Files
prosappweb/lib/ui/inputs/custom_inputs.dart
T
Lizandro GuarnizoandClaude Sonnet 4.6 15175c1b91 replace: swap prosappweb content for prosapp_web_app (more complete version)
prosapp_web_app has chat, dashboard, calendar, support, 13 providers and
Fluro URL routing. Keep Dockerfile + nginx.conf from previous prosappweb.
Upgrade google_fonts 6.2.1 → 8.1.0 (Dart 3.12 compat fix).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-18 15:26:32 -05:00

60 lines
1.7 KiB
Dart

import 'package:flutter/material.dart';
class CustomInputs {
static InputDecoration loginInputDecoration({
required String hint,
required String label,
required IconData icon,
}) {
return InputDecoration(
border: OutlineInputBorder(
borderSide: BorderSide(color: Colors.black.withOpacity(0.3)),
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.black.withOpacity(0.3)),
),
hintText: hint,
labelText: label,
prefixIcon: Icon(icon, color: Colors.grey),
labelStyle: const TextStyle(color: Colors.grey),
hintStyle: const TextStyle(color: Colors.grey),
);
}
static InputDecoration searchInputDecoration({
required String hint,
required IconData icon,
}) {
return InputDecoration(
enabledBorder: InputBorder.none,
border: InputBorder.none,
hintText: hint,
prefixIcon: Icon(icon, color: Colors.grey),
labelStyle: const TextStyle(color: Colors.grey),
hintStyle: const TextStyle(color: Colors.grey),
);
}
static InputDecoration formInputDecoration({
required String hint,
required String label,
required IconData icon,
IconButton? iconButton,
}) {
return InputDecoration(
border: OutlineInputBorder(
borderSide: BorderSide(color: Colors.indigo.withOpacity(0.3)),
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.indigo.withOpacity(0.3)),
),
hintText: hint,
labelText: label,
prefixIcon: Icon(icon, color: Colors.grey),
suffixIcon: iconButton,
labelStyle: const TextStyle(color: Colors.grey),
hintStyle: const TextStyle(color: Colors.grey),
);
}
}