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>
60 lines
1.7 KiB
Dart
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),
|
|
);
|
|
}
|
|
}
|