chore: code clean up

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-11-10 09:49:06 +08:00
parent 03d405e197
commit 59910e275e
133 changed files with 597 additions and 816 deletions

View File

@@ -17,7 +17,7 @@ class ActionItem extends StatefulWidget {
final Function? callBack;
const ActionItem({
Key? key,
super.key,
this.icon,
this.selectIcon,
this.onTap,
@@ -29,7 +29,7 @@ class ActionItem extends StatefulWidget {
this.hasOneThree = false,
this.callBack,
required this.semanticsLabel,
}) : super(key: key);
});
@override
State<ActionItem> createState() => ActionItemState();

View File

@@ -11,7 +11,7 @@ class ActionRowItem extends StatelessWidget {
final Function? onLongPress;
const ActionRowItem({
Key? key,
super.key,
this.icon,
this.selectIcon,
this.onTap,
@@ -19,7 +19,7 @@ class ActionRowItem extends StatelessWidget {
this.text,
this.selectStatus = false,
this.onLongPress,
}) : super(key: key);
});
@override
Widget build(BuildContext context) {

View File

@@ -6,8 +6,6 @@ import 'package:PiliPalaX/http/member.dart';
import 'package:PiliPalaX/models/member/tags.dart';
import 'package:PiliPalaX/utils/feed_back.dart';
import '../../../../../utils/utils.dart';
class GroupPanel extends StatefulWidget {
final int? mid;
final List? tags;

View File

@@ -12,7 +12,7 @@ class MenuRow extends StatelessWidget {
Widget build(BuildContext context) {
return Container(
width: double.infinity,
color: Theme.of(context).colorScheme.background,
color: Theme.of(context).colorScheme.surface,
padding: const EdgeInsets.only(top: 9, bottom: 9, left: 12),
child: SingleChildScrollView(
scrollDirection: Axis.horizontal,
@@ -84,7 +84,7 @@ class MenuRow extends StatelessWidget {
style: TextStyle(
fontSize: 13,
color: selectStatus
? Theme.of(context).colorScheme.onBackground
? Theme.of(context).colorScheme.onSurface
: Theme.of(context).colorScheme.outline),
),
),