Robo-advisory-dart/lib/utils/constants.dart

35 lines
845 B
Dart
Raw Permalink Normal View History

import 'package:flutter/material.dart';
import 'package:pin_code_fields/pin_code_fields.dart';
final otpPinTheme = PinTheme(
inactiveFillColor: Colors.white,
activeColor: Colors.white,
activeFillColor: Colors.white,
selectedFillColor: Colors.white,
selectedColor: Colors.white,
inactiveColor: Colors.grey,
shape: PinCodeFieldShape.box,
borderRadius: BorderRadius.circular(5),
fieldHeight: 60,
fieldWidth: 50,
);
2022-09-11 14:37:28 +00:00
InputDecoration roboInputDecoration({String? placeholderHint}) {
return InputDecoration(
filled: true,
fillColor: Colors.white,
hintText: placeholderHint,
hintStyle: TextStyle(
color: Colors.grey,
),
border: OutlineInputBorder(
borderRadius: BorderRadius.all(
Radius.circular(30.0),
),
borderSide: BorderSide(
width: 1.0,
),
),
);
}