opt: SheetHeight

*no need to compute

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-11-19 18:24:20 +08:00
parent b37930484b
commit f3a95a2c3a
5 changed files with 6 additions and 9 deletions

View File

@@ -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(

View File

@@ -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';

View File

@@ -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(

View File

@@ -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 {
@@ -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: [

View File

@@ -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(