Skip to content

Instantly share code, notes, and snippets.

@tirth-aubergine tirth-aubergine/home.dart
Last active Dec 6, 2019

Embed
What would you like to do?
HomeScreen - List
ListView(
padding: EdgeInsets.all(16),
children: <Widget>[
...SpreadsheetDecoder.decodeBytes(
File(homeProvider.xlsxFilePath).readAsBytesSync())
.tables[homeProvider.xlsxFileSelectedTable]
.rows
.map(
(value) => Column(
children: <Widget>[
Container(
decoration: BoxDecoration(
color: Colors.transparent.withOpacity(0.1),
borderRadius: BorderRadius.circular(50),
),
child: ListTile(
contentPadding: EdgeInsets.all(16),
onTap: () {
Navigator.pushNamed(context, '/result',
arguments: {'result': value});
},
leading: Container(
width: 40,
height: 40,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Colors.deepPurple[200],
),
child: Icon(
Icons.person,
color: Colors.deepPurple[100],
size: 30,
),
),
title: Text(
value[0],
style: TextStyle(
color: Colors.white70,
fontWeight: FontWeight.w700,
),
),
),
),
SizedBox(
height: 24,
),
],
),
),
],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.