change class and file name

setting_branch
enadhilal 6 years ago
parent 778fd5374d
commit 6876e1da77

@ -75,7 +75,7 @@ class InformationPage extends StatelessWidget {
Row( Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[ children: <Widget>[
deliveryInfoButton( DeliveryInfoButton(
btnColor: Color(0xffED1C24), btnColor: Color(0xffED1C24),
btnIcon: Icon( btnIcon: Icon(
Icons.near_me, Icons.near_me,
@ -87,7 +87,7 @@ class InformationPage extends StatelessWidget {
.location, .location,
btnFunction: () {}, btnFunction: () {},
), ),
deliveryInfoButton( DeliveryInfoButton(
btnColor: Color(0xFF61B260), btnColor: Color(0xFF61B260),
btnIcon: Icon( btnIcon: Icon(
Icons.whatshot, Icons.whatshot,
@ -97,7 +97,7 @@ class InformationPage extends StatelessWidget {
btnName: 'Whatsapp', btnName: 'Whatsapp',
btnFunction: () {}, btnFunction: () {},
), ),
deliveryInfoButton( DeliveryInfoButton(
btnColor: Color(0xFFFCB657), btnColor: Color(0xFFFCB657),
btnIcon: Icon( btnIcon: Icon(
Icons.mail_outline, Icons.mail_outline,
@ -109,7 +109,7 @@ class InformationPage extends StatelessWidget {
.sms, .sms,
btnFunction: () {}, btnFunction: () {},
), ),
deliveryInfoButton( DeliveryInfoButton(
btnColor: Theme.of(context).primaryColor, btnColor: Theme.of(context).primaryColor,
btnIcon: Icon( btnIcon: Icon(
Icons.phone, Icons.phone,

@ -1,12 +1,12 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class deliveryInfoButton extends StatelessWidget { class DeliveryInfoButton extends StatelessWidget {
final Color btnColor; final Color btnColor;
final Icon btnIcon; final Icon btnIcon;
final Function btnFunction; final Function btnFunction;
final String btnName; final String btnName;
deliveryInfoButton( DeliveryInfoButton(
{this.btnColor, this.btnIcon, this.btnFunction, this.btnName}); {this.btnColor, this.btnIcon, this.btnFunction, this.btnName});
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {

Loading…
Cancel
Save