Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @override
- Widget build(BuildContext context) {
- return SafeArea(
- child: Scaffold(
- body: Center(
- child: Column(
- mainAxisAlignment: MainAxisAlignment.start,
- children: <Widget>[
- Row(//jakieś coś ),
- FutureBuilder(
- future: fetchWniosek(),
- builder:(context, AsyncSnapshot snapshot) {
- if (!snapshot.hasData) {
- return Center(child: CircularProgressIndicator());
- } else {
- List<WniosekModel> posts = snapshot.data ?? [];
- return Expanded(
- child: ListView.builder(
- itemCount: posts.length,
- scrollDirection: Axis.vertical,
- itemBuilder: (BuildContext context, int index) {
- return Text(posts[index].kod_uzytkownika);
- }
- )
- );
- }
- }
- )
- ],
- ),
- ),
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment