Dish view
This commit is contained in:
44
lib/components/socialMedia.dart
Normal file
44
lib/components/socialMedia.dart
Normal file
@@ -0,0 +1,44 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:menui_mobile/services.dart';
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
|
||||
class SocialMedia extends StatelessWidget {
|
||||
final MenuiLinks links;
|
||||
SocialMedia({@required this.links});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
if (links.facebook != "")
|
||||
IconButton(
|
||||
icon: FaIcon(
|
||||
FontAwesomeIcons.facebook,
|
||||
color: Colors.white,
|
||||
),
|
||||
onPressed: () {
|
||||
print(links.facebook);
|
||||
}),
|
||||
if (links.instagram != "")
|
||||
IconButton(
|
||||
icon: FaIcon(
|
||||
FontAwesomeIcons.instagram,
|
||||
color: Colors.white,
|
||||
),
|
||||
onPressed: () {
|
||||
print(links.instagram);
|
||||
}),
|
||||
if (links.www != "")
|
||||
IconButton(
|
||||
icon: FaIcon(
|
||||
FontAwesomeIcons.globe,
|
||||
color: Colors.white,
|
||||
),
|
||||
onPressed: () {
|
||||
print(links.www);
|
||||
})
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user