Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:file_picker/file_picker.dart';
- import 'package:flutter/material.dart';
- import 'package:flutter/services.dart';
- import 'package:flutter_media_metadata/flutter_media_metadata.dart';
- class LibraryPage extends StatefulWidget {
- final List<PlatformFile> paths;
- final List<String> listOfFileName;
- LibraryPage({Key key, this.paths, this.listOfFileName}) : super(key: key);
- @override
- _LibraryPageState createState() => _LibraryPageState();
- }
- class _LibraryPageState extends State<LibraryPage> {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: Text("Open Audiobook"),
- actions: <Widget>[
- InkWell(
- onTap: () async {},
- child: Padding(
- padding: const EdgeInsets.all(15.0),
- child: Icon(Icons.add_circle_outline_rounded),
- ),
- ),
- ],
- ),
- body: ListView.builder(
- itemCount: widget.paths.length,
- itemBuilder: (BuildContext context, int index) {
- return ListTile(
- title: Text(widget.listOfFileName[index].toString()),
- );
- }));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment