update image resolution and search bar cursor color
This commit is contained in:
@@ -31,20 +31,20 @@ class PackageSearchDelegate extends SearchDelegate<Package> {
|
||||
ThemeData appBarTheme(BuildContext context) {
|
||||
final ThemeData theme = Theme.of(context);
|
||||
return theme.copyWith(
|
||||
appBarTheme: AppBarTheme(color: primaryColor),
|
||||
iconButtonTheme: IconButtonThemeData(
|
||||
style: ButtonStyle(
|
||||
iconColor: WidgetStateProperty.all<Color>(Colors.white))),
|
||||
inputDecorationTheme: InputDecorationTheme(
|
||||
border: InputBorder.none,
|
||||
hintStyle: TextStyle(color: Colors.grey, fontSize: 14)),
|
||||
textTheme: TextTheme(
|
||||
displayLarge: TextStyle(
|
||||
color: theme.primaryTextTheme.displayLarge?.color,
|
||||
fontSize: 16,
|
||||
backgroundColor: primaryColor)),
|
||||
primaryColor: primaryColor,
|
||||
);
|
||||
textSelectionTheme: TextSelectionThemeData(cursorColor: Colors.grey),
|
||||
appBarTheme: AppBarTheme(color: primaryColor),
|
||||
iconButtonTheme: IconButtonThemeData(
|
||||
style: ButtonStyle(
|
||||
iconColor: WidgetStateProperty.all<Color>(Colors.white))),
|
||||
inputDecorationTheme: InputDecorationTheme(
|
||||
border: InputBorder.none,
|
||||
hintStyle: TextStyle(color: Colors.grey, fontSize: 14)),
|
||||
textTheme: TextTheme(
|
||||
displayLarge: TextStyle(
|
||||
color: theme.primaryTextTheme.displayLarge?.color,
|
||||
fontSize: 16,
|
||||
backgroundColor: primaryColor)),
|
||||
primaryColor: primaryColor);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -126,7 +126,7 @@ class PackageSearchDelegate extends SearchDelegate<Package> {
|
||||
|
||||
@override
|
||||
Widget buildSuggestions(BuildContext context) {
|
||||
return FutureBuilder<List<String>?>(
|
||||
return FutureBuilder<List<String>?>(
|
||||
future: SharedPref.getRecentSearch('package_search', query),
|
||||
builder: (context, snapshot) {
|
||||
List<String> _oldFilters = snapshot.data ?? [];
|
||||
@@ -134,8 +134,7 @@ class PackageSearchDelegate extends SearchDelegate<Package> {
|
||||
return const Center(
|
||||
child: Opacity(
|
||||
opacity: 0.2,
|
||||
child: Icon(Octicons.package,
|
||||
color: primaryColor, size: 200),
|
||||
child: Icon(Octicons.package, color: primaryColor, size: 200),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user