Remove asset image, peformance boost.
This commit is contained in:
parent
d5295db753
commit
c4bf7fce60
|
@ -7,6 +7,7 @@ import 'package:flutter/material.dart' hide NestedScrollView, showSearch;
|
|||
import 'package:flutter/scheduler.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:fluttertoast/fluttertoast.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:line_icons/line_icons.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:tuple/tuple.dart';
|
||||
|
@ -167,13 +168,11 @@ class _HomeState extends State<Home> with SingleTickerProviderStateMixin {
|
|||
: settings.setTheme =
|
||||
ThemeMode.light
|
||||
},
|
||||
child: Image(
|
||||
image: Theme.of(context).brightness ==
|
||||
Brightness.light
|
||||
? AssetImage('assets/text.png')
|
||||
: AssetImage(
|
||||
'assets/text_light.png'),
|
||||
height: 30,
|
||||
child: Text(
|
||||
'Tsacdop',
|
||||
style: GoogleFonts.quicksand(
|
||||
color: context.accentColor,
|
||||
textStyle: TextStyle(fontSize: 25)),
|
||||
),
|
||||
),
|
||||
featureDiscoveryOverlay(context,
|
||||
|
|
|
@ -9,6 +9,7 @@ import 'package:flutter/material.dart' hide SearchDelegate;
|
|||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_html/flutter_html.dart';
|
||||
import 'package:fluttertoast/fluttertoast.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:webfeed/webfeed.dart';
|
||||
|
||||
|
@ -546,9 +547,7 @@ class __ListenNotesSearchState extends State<_ListenNotesSearch> {
|
|||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 10.0, bottom: 20.0),
|
||||
child: OutlineButton(
|
||||
OutlineButton(
|
||||
highlightedBorderColor: context.accentColor,
|
||||
splashColor: context.accentColor.withOpacity(0.5),
|
||||
shape: RoundedRectangleBorder(
|
||||
|
@ -573,21 +572,25 @@ class __ListenNotesSearchState extends State<_ListenNotesSearch> {
|
|||
widget.query, _nextOffset);
|
||||
},
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
SliverToBoxAdapter(
|
||||
child: SizedBox(
|
||||
height: 20,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.symmetric(vertical: 10),
|
||||
child: Center(
|
||||
child: Image(
|
||||
image: context.brightness == Brightness.light
|
||||
? AssetImage('assets/listennotes.png')
|
||||
: AssetImage('assets/listennotes_light.png'),
|
||||
height: 15,
|
||||
child: Text(
|
||||
'Powered by ListenNotes',
|
||||
style: GoogleFonts.quicksand(
|
||||
color: Colors.red, textStyle: TextStyle(fontSize: 15)),
|
||||
),
|
||||
// Image(
|
||||
// image: context.brightness == Brightness.light
|
||||
// ? AssetImage('assets/listennotes.png')
|
||||
// : AssetImage('assets/listennotes_light.png'),
|
||||
// height: 15,
|
||||
// ),
|
||||
),
|
||||
))
|
||||
],
|
||||
|
@ -706,9 +709,7 @@ class __PodcastIndexSearchState extends State<_PodcastIndexSearch> {
|
|||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 10.0, bottom: 20.0),
|
||||
child: OutlineButton(
|
||||
OutlineButton(
|
||||
highlightedBorderColor: context.accentColor,
|
||||
splashColor: context.accentColor.withOpacity(0.5),
|
||||
shape: RoundedRectangleBorder(
|
||||
|
@ -732,20 +733,25 @@ class __PodcastIndexSearchState extends State<_PodcastIndexSearch> {
|
|||
limit: _limit);
|
||||
},
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
SliverToBoxAdapter(
|
||||
child: SizedBox(
|
||||
height: 20,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.symmetric(vertical: 10),
|
||||
child: Center(
|
||||
child: Image(
|
||||
image: AssetImage('assets/podcastindex.png'),
|
||||
height: 15,
|
||||
),
|
||||
child: Text(
|
||||
'Powered by PODCASTINDEX',
|
||||
style: GoogleFonts.quicksand(
|
||||
color: Colors.red,
|
||||
textStyle: TextStyle(fontSize: 15)),
|
||||
),
|
||||
)
|
||||
// Image(
|
||||
// image: AssetImage('assets/podcastindex.png'),
|
||||
// height: 15,
|
||||
// ),
|
||||
))
|
||||
],
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue