feat: overall UI rework in Settings View (#53)

This commit is contained in:
Alberto Ponces
2022-09-02 14:35:25 +01:00
committed by GitHub
parent 036e8c99b3
commit 4f7b1d4520
37 changed files with 485 additions and 361 deletions

View File

@@ -41,7 +41,7 @@ class ApplicationItem extends StatelessWidget {
),
padding: const EdgeInsets.symmetric(horizontal: 10.0, vertical: 12.0),
child: Row(
children: [
children: <Widget>[
SizedBox(
width: 60,
child: Image.memory(
@@ -55,7 +55,7 @@ class ApplicationItem extends StatelessWidget {
width: MediaQuery.of(context).size.width - 250,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
children: <Widget>[
Text(
name,
style: GoogleFonts.roboto(
@@ -93,7 +93,7 @@ class ApplicationItem extends StatelessWidget {
padding: const EdgeInsets.symmetric(vertical: 8.0, horizontal: 16.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
children: <Widget>[
I18nText(
'applicationItem.changelogLabel',
child: Text(

View File

@@ -0,0 +1,39 @@
import 'package:flutter/material.dart';
import 'package:revanced_manager/theme.dart';
class CustomSliverAppBar extends StatelessWidget {
final Widget title;
final PreferredSizeWidget? bottom;
const CustomSliverAppBar({
Key? key,
required this.title,
this.bottom,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return SliverAppBar(
pinned: true,
snap: false,
floating: false,
expandedHeight: 100.0,
automaticallyImplyLeading: false,
backgroundColor: MaterialStateColor.resolveWith(
(states) => states.contains(MaterialState.scrolledUnder)
? isDark
? Theme.of(context).colorScheme.primary
: Theme.of(context).navigationBarTheme.backgroundColor!
: Theme.of(context).scaffoldBackgroundColor,
),
flexibleSpace: FlexibleSpaceBar(
titlePadding: const EdgeInsets.symmetric(
vertical: 23.0,
horizontal: 20.0,
),
title: title,
),
bottom: bottom,
);
}
}

View File

@@ -44,7 +44,7 @@ class _SearchBarState extends State<SearchBar> {
),
),
child: Row(
children: [
children: <Widget>[
Expanded(
child: TextFormField(
onChanged: widget.onQueryChanged,