mangayomi-mirror/lib/views/browse/sources.dart

50 lines
1.4 KiB
Dart

import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'package:mangayomi/models/manga_type.dart';
class SourcesScreen extends StatefulWidget {
const SourcesScreen({super.key});
@override
State<SourcesScreen> createState() => _SourcesScreenState();
}
class _SourcesScreenState extends State<SourcesScreen> {
@override
Widget build(BuildContext context) {
return Column(
children: [
ListTile(
onTap: () {
context.push('/mangaHome',
extra: MangaType(
isFullData: true, lang: 'en', source: 'mangahere'));
},
leading: Container(
height: 37,
width: 37,
decoration: BoxDecoration(
color: Colors.grey, borderRadius: BorderRadius.circular(5)),
),
subtitle: const Text('English'),
title: const Text('MangaHere'),
trailing: SizedBox(
width: 110,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: const [
Text(
"Latest",
style: TextStyle(fontWeight: FontWeight.bold),
),
Icon(
Icons.push_pin_outlined,
color: Colors.black,
)
],
)),
)
],
);
}
}