Skip to content

Instantly share code, notes, and snippets.

@NITIN-ME
Created June 30, 2020 11:59
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 NITIN-ME/e76cc01012c7811ad35655ae821e972b to your computer and use it in GitHub Desktop.
Save NITIN-ME/e76cc01012c7811ad35655ae821e972b to your computer and use it in GitHub Desktop.
class InvitePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Colors.orange,
title: Center(
child: Text(
'Party Invite',
style: TextStyle(
fontFamily: 'cursive',
fontSize: 32,
color: Colors.black,
),
)
),
),
body: MyInvites(),
);
}
}
class MyInvites extends StatelessWidget {
@override
Widget build(BuildContext context) {
List<String> args = ModalRoute.of(context).settings.arguments;
print(args);
return ListView.builder(
itemCount: args.length,
itemBuilder: (context, index) {
return ListTile(
title: Text(args[index]),
leading: CircleAvatar(child: Text(args[index][0]),),
);
},
);;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment