mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Update
This commit is contained in:
46
lib/components/gallery_basic_info.dart
Normal file
46
lib/components/gallery_basic_info.dart
Normal file
@@ -0,0 +1,46 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
import '../api/gallery.dart';
|
||||
import 'thumbnail.dart';
|
||||
|
||||
class GalleryBasicInfo extends StatelessWidget {
|
||||
const GalleryBasicInfo(this.gMeta, this.firstPage, {Key? key, this.fileId})
|
||||
: super(key: key);
|
||||
final GMeta gMeta;
|
||||
final ExtendedPMeta firstPage;
|
||||
final int? fileId;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return SizedBox(
|
||||
height: 300,
|
||||
child: Column(children: [
|
||||
Expanded(
|
||||
child: Row(children: [
|
||||
Expanded(flex: 2, child: Thumbnail(firstPage, fileId: fileId)),
|
||||
Expanded(
|
||||
flex: 3,
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
SelectableText(gMeta.preferredTitle),
|
||||
SelectableText(gMeta.uploader),
|
||||
SelectableText(gMeta.category),
|
||||
],
|
||||
))
|
||||
])),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 8),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||
children: [
|
||||
ElevatedButton(
|
||||
onPressed: null,
|
||||
child: Text(AppLocalizations.of(context)!.read)),
|
||||
ElevatedButton(
|
||||
onPressed: null,
|
||||
child: Text(AppLocalizations.of(context)!.download)),
|
||||
]))
|
||||
]));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user