Skip to content

refactor #171: remove all the deprecated attributes#172

Merged
koukibadr merged 1 commit into
mainfrom
feat#171-remove-all-deprecated-attributes
Jul 2, 2026
Merged

refactor #171: remove all the deprecated attributes#172
koukibadr merged 1 commit into
mainfrom
feat#171-remove-all-deprecated-attributes

Conversation

@koukibadr

@koukibadr koukibadr commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • New Features

    • iOS support now targets a newer minimum OS version and includes updated scene/lifecycle handling for smoother app startup.
    • Time picker inputs now have sensible defaults, with support for optional values and validation of interval settings.
    • Close icon sizing can now be configured directly.
  • Bug Fixes

    • Improved iOS debugging setup for more reliable Flutter app launch and testing.
  • Documentation

    • Added clearer inline documentation across picker widgets and configuration options.
    • Removed several deprecated picker configuration options from public APIs.

@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@koukibadr, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 43 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 7d215a36-cd80-4d13-8e3c-0ff61d4ded6d

📥 Commits

Reviewing files that changed from the base of the PR and between e001c36 and ec9cd60.

⛔ Files ignored due to path filters (2)
  • example/pubspec.lock is excluded by !**/*.lock
  • pubspec.lock is excluded by !**/*.lock
📒 Files selected for processing (13)
  • example/ios/Flutter/AppFrameworkInfo.plist
  • example/ios/Runner.xcodeproj/project.pbxproj
  • example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
  • example/ios/Runner/AppDelegate.swift
  • example/ios/Runner/Info.plist
  • lib/bottom_picker.dart
  • lib/widgets/bottom_picker_button.dart
  • lib/widgets/close_icon.dart
  • lib/widgets/date_picker.dart
  • lib/widgets/range_picker.dart
  • lib/widgets/simple_picker.dart
  • lib/widgets/time_picker.dart
  • lib/widgets/year_picker.dart

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
lib/widgets/time_picker.dart (1)

78-86: 🎯 Functional Correctness | 🔴 Critical | ⚡ Quick win

secondInterval field is never actually applied — hardcoded to 1 in build().

The constructor now accepts and validates secondInterval (default 1, asserted to be a positive divisor of 60), but build() passes a literal secondInterval: 1 to CupertinoTimerPicker instead of the secondInterval field. Any caller supplying a non-default secondInterval (e.g. BottomPicker forwarding widget.timerSecondsInterval, per the downstream snippet) will silently get seconds selectable at 1-second granularity regardless of what was requested.

🐛 Proposed fix
       child: CupertinoTimerPicker(
         itemExtent: itemExtent,
         mode: mode,
         onTimerDurationChanged: onChange,
         minuteInterval: minuteInterval,
         initialTimerDuration: initialDuration ?? Duration.zero,
         backgroundColor: Colors.transparent,
-        secondInterval: 1,
+        secondInterval: secondInterval,
       ),
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@lib/widgets/time_picker.dart` around lines 78 - 86, The Cupertino timer
picker is ignoring the configurable second interval because build() hardcodes
secondInterval to 1. Update the CupertinoTimerPicker call in TimePicker’s build
method to pass the TimePicker.secondInterval field instead of a literal, so
callers like BottomPicker that forward timerSecondsInterval get the requested
granularity.
lib/widgets/close_icon.dart (1)

11-19: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Consider optional param with default instead of required nullable.

closeIconSize is required yet nullable, forcing every caller to explicitly pass null to opt into default icon sizing rather than simply omitting the parameter. An optional parameter with a sensible default (e.g. this.closeIconSize defaulting to 24.0, matching Icon's default) would be more ergonomic and match Flutter conventions.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@lib/widgets/close_icon.dart` around lines 11 - 19, The CloseIcon constructor
currently makes closeIconSize required even though it is nullable, which forces
callers to pass null instead of omitting it. Update the CloseIcon class so
closeIconSize is optional with a sensible default (for example, 24.0) and keep
the sizing logic in CloseIcon consistent with Flutter’s Icon defaults.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@lib/widgets/date_picker.dart`:
- Around line 27-31: The doc comment for dateOrder is copied from textStyle and
describes the wrong type. Update the comment above dateOrder in DatePicker to
explain that it controls the ordering of date components via the
DatePickerDateOrder enum, and keep the following textStyle comment focused only
on styling.

In `@lib/widgets/time_picker.dart`:
- Around line 49-67: Add constructor assertions in TimePicker to validate that
initialDuration is aligned with minuteInterval and secondInterval before
reaching CupertinoTimerPicker. In the TimePicker constructor, alongside the
existing minuteInterval and secondInterval checks, assert that
initialDuration?.inMinutes % minuteInterval == 0 and initialDuration?.inSeconds
% secondInterval == 0 when initialDuration is provided, so invalid combinations
fail early with a clear TimePicker-level message.

---

Outside diff comments:
In `@lib/widgets/close_icon.dart`:
- Around line 11-19: The CloseIcon constructor currently makes closeIconSize
required even though it is nullable, which forces callers to pass null instead
of omitting it. Update the CloseIcon class so closeIconSize is optional with a
sensible default (for example, 24.0) and keep the sizing logic in CloseIcon
consistent with Flutter’s Icon defaults.

In `@lib/widgets/time_picker.dart`:
- Around line 78-86: The Cupertino timer picker is ignoring the configurable
second interval because build() hardcodes secondInterval to 1. Update the
CupertinoTimerPicker call in TimePicker’s build method to pass the
TimePicker.secondInterval field instead of a literal, so callers like
BottomPicker that forward timerSecondsInterval get the requested granularity.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 20e69c89-1d7d-4ba0-98c6-b1225532f292

📥 Commits

Reviewing files that changed from the base of the PR and between 284b5d3 and e001c36.

⛔ Files ignored due to path filters (2)
  • example/pubspec.lock is excluded by !**/*.lock
  • pubspec.lock is excluded by !**/*.lock
📒 Files selected for processing (13)
  • example/ios/Flutter/AppFrameworkInfo.plist
  • example/ios/Runner.xcodeproj/project.pbxproj
  • example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
  • example/ios/Runner/AppDelegate.swift
  • example/ios/Runner/Info.plist
  • lib/bottom_picker.dart
  • lib/widgets/bottom_picker_button.dart
  • lib/widgets/close_icon.dart
  • lib/widgets/date_picker.dart
  • lib/widgets/range_picker.dart
  • lib/widgets/simple_picker.dart
  • lib/widgets/time_picker.dart
  • lib/widgets/year_picker.dart
💤 Files with no reviewable changes (2)
  • example/ios/Flutter/AppFrameworkInfo.plist
  • lib/bottom_picker.dart

Comment thread lib/widgets/date_picker.dart Outdated
Comment thread lib/widgets/time_picker.dart
Repository owner deleted a comment from coderabbitai Bot Jul 2, 2026
chore: update time picker assertions
@koukibadr koukibadr force-pushed the feat#171-remove-all-deprecated-attributes branch from 6e899cc to ec9cd60 Compare July 2, 2026 07:04
@koukibadr koukibadr merged commit 12a54a4 into main Jul 2, 2026
5 checks passed
@koukibadr koukibadr deleted the feat#171-remove-all-deprecated-attributes branch July 2, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant