mirror of
https://github.com/stonega/tsacdop
synced 2025-02-09 08:08:46 +01:00
b868307c0d
modified: lib/class/audiostate.dart modified: lib/episodes/episodedetail.dart modified: lib/home/appbar/addpodcast.dart modified: lib/home/audio_player.dart modified: lib/home/home.dart modified: pubspec.lock modified: pubspec.yaml
61 lines
1.7 KiB
Dart
61 lines
1.7 KiB
Dart
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:tsacdop/class/audiostate.dart';
|
|
import 'package:provider/provider.dart';
|
|
|
|
import 'package:tsacdop/podcasts/podcastlist.dart';
|
|
import 'hometab.dart';
|
|
import 'package:tsacdop/home/appbar/importompl.dart';
|
|
import 'package:tsacdop/home/audio_player.dart';
|
|
import 'homescroll.dart';
|
|
import 'package:tsacdop/util/pageroute.dart';
|
|
|
|
class Home extends StatefulWidget {
|
|
@override
|
|
_HomeState createState() => _HomeState();
|
|
}
|
|
|
|
class _HomeState extends State<Home> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Stack(children: <Widget>[
|
|
Column(
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: <Widget>[
|
|
Import(),
|
|
Container(
|
|
height: 30,
|
|
padding: EdgeInsets.symmetric(horizontal: 15),
|
|
alignment: Alignment.bottomRight,
|
|
child: GestureDetector(
|
|
onTap: () {
|
|
Navigator.push(
|
|
context,
|
|
SlideLeftRoute(page: Podcast()),
|
|
);
|
|
},
|
|
child: Container(
|
|
height: 30,
|
|
padding: EdgeInsets.all(5.0),
|
|
child: Text('See All',
|
|
style: TextStyle(
|
|
color: Colors.red[300],
|
|
fontWeight: FontWeight.bold,
|
|
)),
|
|
),
|
|
),
|
|
),
|
|
Container(child: ScrollPodcasts()),
|
|
Expanded(
|
|
child: MainTab(),
|
|
),
|
|
],
|
|
),
|
|
Container(
|
|
alignment: Alignment.bottomCenter,
|
|
child: PlayerWidget()),
|
|
]);
|
|
}
|
|
}
|