Skip to content

Instantly share code, notes, and snippets.

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

Embed
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 {
@override
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.