chore: Redesign homepicker page
This commit is contained in:
@ -7,6 +7,7 @@ class DefaultAppBarSearchField extends StatefulWidget {
|
||||
final bool autofocus;
|
||||
final String prefixText;
|
||||
final String hintText;
|
||||
final EdgeInsets padding;
|
||||
|
||||
const DefaultAppBarSearchField({
|
||||
Key key,
|
||||
@ -16,6 +17,7 @@ class DefaultAppBarSearchField extends StatefulWidget {
|
||||
this.autofocus = false,
|
||||
this.prefixText,
|
||||
this.hintText,
|
||||
this.padding,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
@ -59,7 +61,7 @@ class _DefaultAppBarSearchFieldState extends State<DefaultAppBarSearchField> {
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
height: 40,
|
||||
padding: EdgeInsets.only(right: 12),
|
||||
padding: widget.padding ?? EdgeInsets.only(right: 12),
|
||||
child: Material(
|
||||
color: Theme.of(context).secondaryHeaderColor,
|
||||
borderRadius: BorderRadius.circular(32),
|
||||
|
@ -3,6 +3,10 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
|
||||
class SentrySwitchListTile extends StatefulWidget {
|
||||
final String label;
|
||||
|
||||
const SentrySwitchListTile({Key key, this.label}) : super(key: key);
|
||||
|
||||
@override
|
||||
_SentrySwitchListTileState createState() => _SentrySwitchListTileState();
|
||||
}
|
||||
@ -17,7 +21,7 @@ class _SentrySwitchListTileState extends State<SentrySwitchListTile> {
|
||||
builder: (context, snapshot) {
|
||||
_enabled = snapshot.data ?? false;
|
||||
return SwitchListTile(
|
||||
title: Text(L10n.of(context).sendBugReports),
|
||||
title: Text(widget.label ?? L10n.of(context).sendBugReports),
|
||||
value: _enabled,
|
||||
onChanged: (b) =>
|
||||
SentryController.toggleSentryAction(context, b).then(
|
||||
|
Reference in New Issue
Block a user