2020-12-08 07:58:14 +00:00
|
|
|
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}) {
|
2020-12-08 07:58:14 +00:00
|
|
|
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,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|