buildPeriodField method
Builds Period TextFiled
Implementation
@protected
Widget buildPeriodField() => Row(
children: <Widget>[
Text(
ChartLocalization.of(context).labelPeriod,
style: const TextStyle(fontSize: 10),
),
const SizedBox(width: 4),
SizedBox(
width: 20,
child: TextFormField(
style: const TextStyle(fontSize: 10),
initialValue: getCurrentPeriod().toString(),
keyboardType: TextInputType.number,
onChanged: (String text) {
if (text.isNotEmpty) {
period = int.tryParse(text);
} else {
period = 15;
}
updateIndicator();
},
),
),
],
);