Skip to content

Commit

Permalink
opt: SheetHeight
Browse files Browse the repository at this point in the history
*no need to compute

Signed-off-by: bggRGjQaUbCoE <[email protected]>
  • Loading branch information
bggRGjQaUbCoE committed Nov 19, 2024
1 parent b379304 commit f3a95a2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/pages/bangumi/introduction/widgets/intro_detail.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class IntroDetail extends StatelessWidget {
return Container(
color: Theme.of(context).colorScheme.surface,
padding: const EdgeInsets.only(left: 14, right: 14),
height: Utils.getSheetHeight(context),
// height: Utils.getSheetHeight(context),
child: Column(
children: [
Container(
Expand Down
2 changes: 0 additions & 2 deletions lib/pages/main/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ import 'dart:io';

import 'package:PiliPalaX/grpc/grpc_repo.dart';
import 'package:flutter/services.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'package:get/get.dart';
import 'package:flutter/material.dart';
import 'package:hive/hive.dart';
import 'package:PiliPalaX/http/common.dart';
import 'package:PiliPalaX/pages/dynamics/index.dart';
import 'package:PiliPalaX/pages/home/view.dart';
import 'package:PiliPalaX/pages/media/index.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class IntroDetail extends StatelessWidget {
return Container(
color: Theme.of(context).colorScheme.surface,
padding: const EdgeInsets.only(left: 14, right: 14),
height: Utils.getSheetHeight(context),
// height: Utils.getSheetHeight(context),
child: Column(
children: [
InkWell(
Expand Down
7 changes: 3 additions & 4 deletions lib/pages/video/detail/reply_reply/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import 'package:PiliPalaX/models/common/reply_type.dart';
import 'package:get/get_navigation/src/dialog/dialog_route.dart';
import 'package:scrollable_positioned_list/scrollable_positioned_list.dart';

import '../../../../utils/utils.dart';
import 'controller.dart';

class VideoReplyReplyPanel extends StatefulWidget {
Expand Down Expand Up @@ -104,9 +103,9 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel> {
key: _key,
resizeToAvoidBottomInset: false,
body: Container(
height: widget.source == 'videoDetail'
? Utils.getSheetHeight(context)
: null,
// height: widget.source == 'videoDetail'
// ? Utils.getSheetHeight(context)
// : null,
color: Theme.of(context).colorScheme.surface,
child: Column(
children: [
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/video/detail/widgets/ai_detail.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class AiDetail extends StatelessWidget {
return Container(
color: Theme.of(context).colorScheme.surface,
padding: const EdgeInsets.symmetric(horizontal: 14),
height: Utils.getSheetHeight(context),
// height: Utils.getSheetHeight(context),
child: Column(
children: [
InkWell(
Expand Down

0 comments on commit f3a95a2

Please sign in to comment.