make spinner a bit smaller

This commit is contained in:
krawieck 2020-09-20 01:09:09 +02:00
parent 8f03b695ab
commit f180c9d688
1 changed files with 7 additions and 2 deletions

View File

@ -88,8 +88,13 @@ class AddInstancePage extends HookWidget {
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10),
),
child:
!loading.value ? Text('Add') : CircularProgressIndicator(),
child: !loading.value
? Text('Add')
: SizedBox(
height: 20,
width: 20,
child: CircularProgressIndicator(),
),
onPressed: instanceController.text.isEmpty ? null : handleOnAdd,
),
),