mirror of
https://github.com/dstark5/Openlib.git
synced 2025-09-19 05:14:47 +08:00
fixed: fontsize and background color
This commit is contained in:
@ -7,13 +7,13 @@ class TitleText extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.only(left: 10, bottom: 7),
|
padding: const EdgeInsets.only(left: 10, right: 10, top: 20, bottom: 10),
|
||||||
child: Text(
|
child: Text(
|
||||||
text,
|
text,
|
||||||
style: TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 19,
|
fontSize: 40,
|
||||||
fontWeight: FontWeight.bold,
|
// fontWeight: FontWeight.w500,
|
||||||
color: Theme.of(context).colorScheme.secondary,
|
// color: Theme.of(context).colorScheme.onInverseSurface,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -5,14 +5,14 @@ void showSnackBar({required BuildContext context, required String message}) {
|
|||||||
content: Text(
|
content: Text(
|
||||||
message,
|
message,
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 11,
|
fontSize: 12,
|
||||||
fontWeight: FontWeight.bold,
|
// fontWeight: FontWeight.bold,
|
||||||
color: Colors.white,
|
// color: Colors.white,
|
||||||
),
|
),
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
),
|
),
|
||||||
// ignore: use_build_context_synchronously
|
// ignore: use_build_context_synchronously
|
||||||
backgroundColor: Theme.of(context).colorScheme.secondary,
|
// backgroundColor: Theme.of(context).colorScheme.secondary,
|
||||||
width: 300,
|
width: 300,
|
||||||
shape: const RoundedRectangleBorder(
|
shape: const RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.all(Radius.circular(50))),
|
borderRadius: BorderRadius.all(Radius.circular(50))),
|
||||||
|
@ -23,18 +23,18 @@ class _EpubViewState extends ConsumerState<EpubViewerWidget> {
|
|||||||
}, error: (error, stack) {
|
}, error: (error, stack) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: Theme.of(context).colorScheme.primary,
|
// backgroundColor: Theme.of(context).colorScheme.primary,
|
||||||
title: const Text("Openlib"),
|
title: const Text("Openlib"),
|
||||||
titleTextStyle: Theme.of(context).textTheme.displayLarge,
|
// titleTextStyle: Theme.of(context).textTheme.displayLarge,
|
||||||
),
|
),
|
||||||
body: Center(child: Text(error.toString())),
|
body: Center(child: Text(error.toString())),
|
||||||
);
|
);
|
||||||
}, loading: () {
|
}, loading: () {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: Theme.of(context).colorScheme.primary,
|
// backgroundColor: Theme.of(context).colorScheme.primary,
|
||||||
title: const Text("Openlib"),
|
title: const Text("Openlib"),
|
||||||
titleTextStyle: Theme.of(context).textTheme.displayLarge,
|
// titleTextStyle: Theme.of(context).textTheme.displayLarge,
|
||||||
),
|
),
|
||||||
body: Center(
|
body: Center(
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
@ -82,9 +82,10 @@ class _EpubViewerState extends ConsumerState<EpubViewer> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: Theme.of(context).colorScheme.primary,
|
// backgroundColor: Theme.of(context).colorScheme.primary,
|
||||||
title: const Text("Openlib"),
|
title: const Text("Openlib"),
|
||||||
titleTextStyle: Theme.of(context).textTheme.displayLarge,
|
titleSpacing: 0,
|
||||||
|
// titleTextStyle: Theme.of(context).textTheme.displayLarge,
|
||||||
),
|
),
|
||||||
endDrawer: Drawer(
|
endDrawer: Drawer(
|
||||||
child: EpubViewTableOfContents(controller: _epubReaderController),
|
child: EpubViewTableOfContents(controller: _epubReaderController),
|
||||||
|
@ -38,9 +38,9 @@ class _PdfViewState extends ConsumerState<PdfView> {
|
|||||||
}, loading: () {
|
}, loading: () {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: Theme.of(context).colorScheme.primary,
|
// backgroundColor: Theme.of(context).colorScheme.primary,
|
||||||
title: const Text("Openlib"),
|
title: const Text("Openlib"),
|
||||||
titleTextStyle: Theme.of(context).textTheme.displayLarge,
|
// titleTextStyle: Theme.of(context).textTheme.displayLarge,
|
||||||
),
|
),
|
||||||
body: Center(
|
body: Center(
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
@ -106,9 +106,10 @@ class _PdfViewerState extends ConsumerState<PdfViewer> {
|
|||||||
final totalPages = ref.watch(totalPdfPage);
|
final totalPages = ref.watch(totalPdfPage);
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: Theme.of(context).colorScheme.primary,
|
// backgroundColor: Theme.of(context).colorScheme.primary,
|
||||||
title: const Text("Openlib"),
|
title: const Text("Openlib"),
|
||||||
titleTextStyle: Theme.of(context).textTheme.displayLarge,
|
titleSpacing: 0,
|
||||||
|
// titleTextStyle: Theme.of(context).textTheme.displayLarge,
|
||||||
actions: isMobile
|
actions: isMobile
|
||||||
? [
|
? [
|
||||||
IconButton(
|
IconButton(
|
||||||
@ -181,12 +182,8 @@ class _PdfViewerState extends ConsumerState<PdfViewer> {
|
|||||||
},
|
},
|
||||||
loading: () {
|
loading: () {
|
||||||
return Center(
|
return Center(
|
||||||
child: SizedBox(
|
child: CircularProgressIndicator(
|
||||||
width: 25,
|
color: Theme.of(context).colorScheme.secondary,
|
||||||
height: 25,
|
|
||||||
child: CircularProgressIndicator(
|
|
||||||
color: Theme.of(context).colorScheme.secondary,
|
|
||||||
),
|
|
||||||
));
|
));
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user