mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix: minor const/final lint fix
This commit is contained in:
parent
2539a0cc63
commit
047e00cf2c
@ -2,11 +2,11 @@ import 'package:flutter/material.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
|
||||
class SearchBar extends StatefulWidget {
|
||||
String? hintText = "Search";
|
||||
Color? backgroundColor;
|
||||
Color? hintTextColor;
|
||||
final String? hintText;
|
||||
final Color? backgroundColor;
|
||||
final Color? hintTextColor;
|
||||
|
||||
SearchBar({
|
||||
const SearchBar({
|
||||
required this.hintText,
|
||||
this.backgroundColor = const Color(0xff1B222B),
|
||||
this.hintTextColor = Colors.white,
|
||||
@ -28,7 +28,9 @@ class _SearchBarState extends State<SearchBar> {
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
color: widget.backgroundColor,
|
||||
border: Border.all(
|
||||
color: widget.backgroundColor != null ? widget.backgroundColor! : Colors.white,
|
||||
color: widget.backgroundColor != null
|
||||
? widget.backgroundColor!
|
||||
: Colors.white,
|
||||
width: 1,
|
||||
),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user