Created
February 20, 2021 08:47
-
-
Save Abdulsametileri/2dcbd5092ec4a1de2fe731f9e74c34b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Observer _buildFooter() { | |
return Observer(builder: (_) { | |
if (_vm.selectedInvoicesIsEmpty) { | |
return _buildEmptyWidget(); | |
} | |
return Container( | |
color: Colors.white, | |
child: Padding( | |
padding: const EdgeInsets.all(24.0), | |
child: Row( | |
mainAxisAlignment: MainAxisAlignment.spaceBetween, | |
children: [ | |
Column( | |
crossAxisAlignment: CrossAxisAlignment.center, | |
children: [ | |
Text('TOTAL AMOUNT', | |
style: TextStyle( | |
color: Colors.grey, | |
fontWeight: FontWeight.bold, | |
fontSize: 12, | |
)), | |
Text( | |
'${_vm.totalAmount} \$', | |
style: TextStyle( | |
color: Colors.green, | |
fontSize: 16, | |
fontWeight: FontWeight.w500, | |
), | |
) | |
], | |
), | |
ExButton( | |
buttonText: 'Pay', | |
onPressed: () {}, | |
), | |
], | |
), | |
), | |
); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment