mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
32 lines
1.2 KiB
Dart
32 lines
1.2 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'color_manager.dart';
|
|
|
|
InputDecoration? textBoxDecoration({bool suffixIcon = false}) => InputDecoration(
|
|
focusColor: ColorsManager.grayColor,
|
|
suffixIcon:suffixIcon? const Icon(Icons.search):null,
|
|
hintText: 'Search',
|
|
filled: true, // Enable background filling
|
|
fillColor: Colors.grey.shade200, // Set the background color
|
|
border: OutlineInputBorder(
|
|
borderRadius: BorderRadius.circular(15), // Add border radius
|
|
borderSide: BorderSide.none, // Remove the underline
|
|
),
|
|
enabledBorder: OutlineInputBorder(
|
|
borderRadius: BorderRadius.circular(15), // Add border radius
|
|
borderSide: BorderSide.none, // Remove the underline
|
|
),
|
|
focusedBorder: OutlineInputBorder(
|
|
borderRadius: BorderRadius.circular(15), // Add border radius
|
|
borderSide: BorderSide.none, // Remove the underline
|
|
),
|
|
);
|
|
|
|
|
|
TextStyle appBarTextStyle =
|
|
const TextStyle(fontSize: 20, color: ColorsManager.whiteColors);
|
|
|
|
TextStyle smallTextStyle =
|
|
const TextStyle(fontSize: 13, color: ColorsManager.whiteColors,fontWeight: FontWeight.bold);
|
|
|
|
|
|
Decoration containerDecoration = const BoxDecoration(color: Colors.white,borderRadius: BorderRadius.all(Radius.circular(20))); |