import 'package:diplomaticquarterapp/widgets/buttons/secondary_button.dart'; import 'package:diplomaticquarterapp/widgets/data_display/text.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; class BillAmount extends StatefulWidget { final Function changeCurrentTab; BillAmount({Key key, this.changeCurrentTab}); @override _BillAmountState createState() => _BillAmountState(); } class _BillAmountState extends State { @override Widget build(BuildContext context) { return Column( children: [ Texts('BillAmount 3'), SizedBox(height: 45,), Container( padding: EdgeInsets.all(15), width: double.maxFinite, height: 76, child:SecondaryButton( color: Colors.grey[800], textColor: Colors.white, onTap: ()=> widget.changeCurrentTab(3), label: 'Next', ), ) ], ); } }