Skip to content

Instantly share code, notes, and snippets.

@ahmadmarafa
Created October 6, 2019 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmadmarafa/7a56c780cd1155d041eb1c86673ff1c0 to your computer and use it in GitHub Desktop.
Save ahmadmarafa/7a56c780cd1155d041eb1c86673ff1c0 to your computer and use it in GitHub Desktop.
sharedWith
class SharedWith extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
margin: EdgeInsets.only(top: 5),
width: double.infinity,
height: 40.0,
child: Stack(
children: <Widget>[
Positioned(
left: 0,
child: Container(
width: 40.0,
height: 40.0,
decoration: BoxDecoration(
border: Border.all(color: Colors.white , width: 1.0),
shape: BoxShape.circle ,
image: DecorationImage(
image:NetworkImage("https://www.gravatar.com/avatar/0152b8d4af8e0bc96bd6d07ed1281a98?s=48&d=identicon&r=PG"),
fit: BoxFit.fill,
)
)
),
),
Positioned(
left: 20,
child: Container(
width: 40.0,
height: 40.0,
decoration: BoxDecoration(
border: Border.all(color: Colors.white , width: 1.0),
shape: BoxShape.circle ,
image: DecorationImage(
image:NetworkImage("https://www.gravatar.com/avatar/0152b8d4af8e0bc96bd6d07ed1281a98?s=48&d=identicon&r=PG"),
fit: BoxFit.fill,
)
)
),
),
Positioned(
left: 40,
child: Container(
width: 40.0,
height: 40.0,
decoration: BoxDecoration(
border: Border.all(color: Colors.white , width: 1.0),
shape: BoxShape.circle ,
image: DecorationImage(
image:NetworkImage("https://www.gravatar.com/avatar/0152b8d4af8e0bc96bd6d07ed1281a98?s=48&d=identicon&r=PG"),
fit: BoxFit.fill,
)
)
),
),
Positioned(
left: 85,
top: 10,
child: Container(
child: Text('+10' , textAlign: TextAlign.left , style: Theme.of(context).textTheme.display1.copyWith(color: Colors.white , fontSize: 15 )) ,
),
)
],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment