Skip to content

Commit

Permalink
feat(ui): set maxWidth for tablet mode for the info bottom sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
vareversat committed Jun 3, 2023
1 parent ba3c369 commit 1978a77
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions lib/widgets/forecast/forecast_widget/forecast_widget.dart
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
import 'dart:ui';

import 'package:chabo/custom_properties.dart';
import 'package:chabo/widgets/forecast_information_bottom_sheet.dart';
import 'package:chabo/extensions/color_scheme_extension.dart';
import 'package:chabo/extensions/duration_extension.dart';
import 'package:chabo/helpers/device_helper.dart';
import 'package:chabo/models/abstract_forecast.dart';
import 'package:chabo/models/time_slot.dart';
import 'package:chabo/widgets/forecast_information_bottom_sheet.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:intl/intl.dart';

part 'closing_info_widget.dart';

part 'day_widget.dart';

part 'duration_widget.dart';

part 'leading_icon_widget.dart';

part 'opening_info_widget.dart';

part 'time_slot_warning_widget.dart';

class ForecastWidget extends StatelessWidget {
Expand Down Expand Up @@ -80,9 +75,9 @@ class ForecastWidget extends StatelessWidget {
useSafeArea: false,
barrierColor: Colors.black.withOpacity(0.65),
constraints: BoxConstraints(
minWidth: DeviceHelper.isPortrait(context)
maxWidth: DeviceHelper.isPortrait(context)
? double.infinity
: MediaQuery.of(context).size.width / 3,
: MediaQuery.of(context).size.width / 2.5,
),
enableDrag: true,
context: context,
Expand Down

0 comments on commit 1978a77

Please sign in to comment.