Skip to content

Instantly share code, notes, and snippets.



Last active Dec 5, 2019
What would you like to do?
HomeScreen - Body Initial
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:spreadsheet_decoder/spreadsheet_decoder.dart';
import 'package:file_picker/file_picker.dart';
import 'package:certificate_generator/providers/home.dart';
class HomeScreen extends StatelessWidget {
Widget build(BuildContext context) {
return Consumer<HomeProvider>(
builder: (_, homeProvider, __) => Scaffold(
body: Center(
child: homeProvider.xlsxFilePath != null
? ListView(
// list of names
: Center(
child: Text(
'Click FAB to read xlsx',
style: TextStyle(color: Colors.white),
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.