Skip to content

Instantly share code, notes, and snippets.

@Abdulsametileri
Created February 20, 2021 08:47
Show Gist options
  • Save Abdulsametileri/2dcbd5092ec4a1de2fe731f9e74c34b0 to your computer and use it in GitHub Desktop.
Save Abdulsametileri/2dcbd5092ec4a1de2fe731f9e74c34b0 to your computer and use it in GitHub Desktop.
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