SocialMediaButton class

Inheritance

Constructors

SocialMediaButton({Key? key, String? url, GestureTapCallback? onTap, required IconData iconData, double size = 24, Color? color})
const
SocialMediaButton.dribbble({IconData iconData = SocialMediaIcons.dribbble, String? url, double size = 24, GestureTapCallback? onTap, Color? color})
const
SocialMediaButton.facebook({IconData iconData = SocialMediaIcons.facebook, String? url, double size = 24, GestureTapCallback? onTap, Color? color})
const
SocialMediaButton.github({IconData iconData = SocialMediaIcons.github_circled, String? url, double size = 24, GestureTapCallback? onTap, Color? color})
const
SocialMediaButton.google({IconData iconData = SocialMediaIcons.google, String? url, double size = 24, GestureTapCallback? onTap, Color? color})
const
SocialMediaButton.instagram({IconData iconData = SocialMediaIcons.instagram, String? url, double size = 24, GestureTapCallback? onTap, Color? color})
const
SocialMediaButton.linkedin({IconData iconData = SocialMediaIcons.linkedin, String? url, double size = 24, GestureTapCallback? onTap, Color? color})
const
SocialMediaButton.medium({IconData iconData = SocialMediaIcons.medium, String? url, double size = 24, GestureTapCallback? onTap, Color? color})
const
SocialMediaButton.pinterest({IconData iconData = SocialMediaIcons.pinterest, String? url, double size = 24, GestureTapCallback? onTap, Color? color})
const
SocialMediaButton.reddit({IconData iconData = SocialMediaIcons.reddit, String? url, double size = 24, GestureTapCallback? onTap, Color? color})
const
SocialMediaButton.skype({IconData iconData = SocialMediaIcons.skype, String? url, double size = 24, GestureTapCallback? onTap, Color? color})
const
SocialMediaButton.snapchat({IconData iconData = SocialMediaIcons.snapchat_ghost, String? url, double size = 24, GestureTapCallback? onTap, Color? color})
const
SocialMediaButton.soundcloud({IconData iconData = SocialMediaIcons.soundcloud, String? url, double size = 24, GestureTapCallback? onTap, Color? color})
const
SocialMediaButton.spotify({IconData iconData = SocialMediaIcons.spotify, String? url, double size = 24, GestureTapCallback? onTap, Color? color})
const
SocialMediaButton.stackexchange({IconData iconData = SocialMediaIcons.stackexchange, String? url, double size = 24, GestureTapCallback? onTap, Color? color})
const
SocialMediaButton.stackoverflow({IconData iconData = SocialMediaIcons.stackoverflow, String? url, double size = 24, GestureTapCallback? onTap, Color? color})
const
SocialMediaButton.twitter({IconData iconData = SocialMediaIcons.twitter, String? url, double size = 24, GestureTapCallback? onTap, Color? color})
const
SocialMediaButton.whatsapp({IconData iconData = SocialMediaIcons.whatsapp, String? url, double size = 24, GestureTapCallback? onTap, Color? color})
const
SocialMediaButton.youtube({IconData iconData = SocialMediaIcons.youtube, String? url, double size = 24, GestureTapCallback? onTap, Color? color})
const

Properties

color Color?
color of the Icon
final
hashCode int
The hash code for this object.
no setterinherited
iconData IconData
If you want to use other icons that we have in SocialMediaIcons you can use this parameter
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onTap GestureTapCallback?
if url not provided, onTap will do the job It is only will work when url is null.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double
IconSize
final
url String?
if url provided, the social media button will open the related url Be careful, you couldn't use both url and onTap
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited