buildDictionaryLoading method
In progress indicator for dictionary searching.
Implementation
Widget buildDictionaryLoading() {
return ValueListenableBuilder<bool>(
valueListenable: _isSearchingNotifier,
builder: (context, value, child) {
return Visibility(
visible: value,
child: SizedBox(
height: double.infinity,
width: double.infinity,
child: Card(
color: Colors.transparent,
elevation: 0,
shape: const RoundedRectangleBorder(),
child: Column(
children: [
const LinearProgressIndicator(
backgroundColor: Colors.transparent,
valueColor: AlwaysStoppedAnimation<Color>(Colors.red),
minHeight: 2.75,
),
Expanded(child: Container())
],
),
),
),
);
},
);
}