mirror of
https://github.com/stonega/tsacdop
synced 2025-01-24 20:52:56 +01:00
d3efce463c
modified: lib/class/sqflite_localpodcast.dart modified: lib/episodes/episodedetail.dart modified: lib/home/appbar/importompl.dart modified: lib/home/appbar/popupmenu.dart modified: lib/home/home.dart modified: lib/home/homescroll.dart modified: lib/main.dart modified: lib/podcasts/podcastlist.dart new file: lib/podcasts/podcastmanage.dart modified: lib/util/episodegrid.dart modified: pubspec.lock modified: pubspec.yaml Add: reorder podcasts
76 lines
3.4 KiB
Dart
76 lines
3.4 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:provider/provider.dart';
|
|
import 'package:tsacdop/class/importompl.dart';
|
|
|
|
class Import extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Consumer<ImportOmpl>(
|
|
builder: (context, importOmpl, _) => Container(
|
|
color: Colors.grey[300],
|
|
child: importOmpl.importState == ImportState.start
|
|
? Column(
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: <Widget>[
|
|
SizedBox(height: 2.0, child: LinearProgressIndicator()),
|
|
Container(
|
|
padding: EdgeInsets.symmetric(horizontal: 20.0),
|
|
height: 20.0,
|
|
alignment: Alignment.centerLeft,
|
|
child: Text('Read file successful'),
|
|
),
|
|
])
|
|
: importOmpl.importState == ImportState.import
|
|
? Column(
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: <Widget>[
|
|
SizedBox(height: 2.0, child: LinearProgressIndicator()),
|
|
Container(
|
|
height: 20.0,
|
|
padding: EdgeInsets.symmetric(horizontal: 20.0),
|
|
alignment: Alignment.centerLeft,
|
|
child:
|
|
Text('Connetting: ' + (importOmpl.rsstitle))),
|
|
],
|
|
)
|
|
: importOmpl.importState == ImportState.parse
|
|
? Column(
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: <Widget>[
|
|
SizedBox(
|
|
height: 2.0, child: LinearProgressIndicator()),
|
|
Container(
|
|
height: 20.0,
|
|
padding: EdgeInsets.symmetric(horizontal: 20.0),
|
|
alignment: Alignment.centerLeft,
|
|
child:
|
|
Text('Fetch data: ' + (importOmpl.rsstitle)),
|
|
),
|
|
],
|
|
)
|
|
: importOmpl.importState == ImportState.error
|
|
? Column(
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: <Widget>[
|
|
SizedBox(
|
|
height: 2.0,
|
|
child: LinearProgressIndicator()),
|
|
Container(
|
|
height: 20.0,
|
|
padding:
|
|
EdgeInsets.symmetric(horizontal: 20.0),
|
|
alignment: Alignment.centerLeft,
|
|
child:
|
|
Text('Error: ' + (importOmpl.rsstitle)),
|
|
),
|
|
],
|
|
)
|
|
: Center()),
|
|
);
|
|
}
|
|
}
|