Skip to content

[UI] Редизайн расписания - #699

Open
Namxobick wants to merge 34 commits into
developfrom
feature/697
Open

Namxobick wants to merge 34 commits into
developfrom
feature/697

Conversation

@Namxobick

@Namxobick Namxobick commented Sep 12, 2026 •

Copy link
Copy Markdown
Member

resolves #697

Я вижу дизайн этой странички так. Глянь тоже: если по дизайну всё устраивает, то маякни, чтобы я начал рефакторить этот код =) Также, если встретишь баги, пиши об этом.

Bugs:

  • Происходит лишняя отрисовка белого прямоугольника при поиске, когда история пуста и введено менее трех символов или когда ничего не найдено. Из-за этого происходит маргание
  • При нажатии на расписание в нижнем меню хотелось бы, чтобы оно возвращалось в исходное состояние, как это было раньше
  • Запретить скейл текста в виджете с датой
  • При переходе со вкладки «Преподаватель» на вкладку «Студент» возникает некорректное поведение
  • фиксировать размер текста в нижней части аппбара и высчитать точную необходимую высоту для PreferredSize

commit 324b238
Merge: 2d4faa5 b29bdca
Author: Yurin Andrey <andreyyurin@icloud.com>
Date:   Thu Sep 10 23:02:58 2026 +0300

    Merge branch 'minorchange/schedule-color' of https://github.com/BitCodersNN/unn-mobile into minorchange/schedule-color

commit 2d4faa5
Author: Yurin Andrey <andreyyurin@icloud.com>
Date:   Thu Sep 10 23:02:54 2026 +0300

    Изменил цвет фона при чередовании

commit c83544e
Author: Yurin Andrey <andreyyurin@icloud.com>
Date:   Thu Sep 10 22:57:51 2026 +0300

    Revert "Изменил цвет фона при чередовании пар"

    This reverts commit b4f831e.

commit b29bdca
Author: UNN MOBILE runner <unnmobile@mail.ru>
Date:   Thu Sep 10 18:08:03 2026 +0000

    Change version in pubspec

commit b4f831e
Author: Yurin Andrey <andreyyurin@icloud.com>
Date:   Thu Sep 10 21:05:36 2026 +0300

    Изменил цвет фона при чередовании пар
@Namxobick Namxobick added feature New feature or request refactor labels Sep 12, 2026
@Namxobick

Copy link
Copy Markdown
Member Author

@Namxobick Namxobick self-assigned this Sep 12, 2026
@KriseevM
KriseevM deployed to develop-android September 15, 2026 15:44 — with GitHub Actions Active
@KriseevM
KriseevM deployed to develop-android September 15, 2026 15:44 — with GitHub Actions Active
@KriseevM
KriseevM deployed to develop-ios September 15, 2026 17:55 — with GitHub Actions Active
@KriseevM
KriseevM deployed to develop-android September 15, 2026 18:04 — with GitHub Actions Active
Namxobick and others added 8 commits September 23, 2026 12:42
- Вынесены общие виджеты и создан AppSearchController<T>.
- Логика перенесена в ViewModels.
- Экспорт вынесен в отдельный файл.
- Нумерация недель привязана к семестрам, добавлен скролл к сегодня.
@Namxobick
Namxobick marked this pull request as ready for review September 23, 2026 14:36
@Namxobick
Namxobick requested a review from KriseevM September 23, 2026 14:36
@KriseevM
KriseevM deployed to develop-ios September 23, 2026 18:47 — with GitHub Actions Active
@KriseevM
KriseevM deployed to develop-android September 23, 2026 20:01 — with GitHub Actions Active
@KriseevM
KriseevM deployed to develop-android September 24, 2026 06:26 — with GitHub Actions Active
@KriseevM
KriseevM deployed to develop-ios September 24, 2026 06:26 — with GitHub Actions Active
@KriseevM
KriseevM deployed to develop-android September 24, 2026 06:26 — with GitHub Actions Active
@KriseevM
KriseevM deployed to develop-android September 24, 2026 06:35 — with GitHub Actions Active
Comment thread lib/core/misc/date_time_utilities/date_time_extensions.dart Outdated
Comment thread lib/core/misc/date_time_utilities/date_time_parser.dart Outdated
Comment thread lib/core/misc/date_time_utilities/week_range.dart Outdated
Comment thread lib/core/models/schedule/schedule_filter.dart Outdated
Comment thread lib/core/viewmodels/main_page/schedule/schedule_screen_view_model.dart Outdated
@KriseevM KriseevM self-assigned this Sep 30, 2026
@KriseevM KriseevM assigned Namxobick and unassigned Namxobick Sep 30, 2026
Comment thread lib/core/misc/date_time_utilities/week_range.dart
Comment on lines +156 to +161
for (int i = start; i < currentSchedule.length && i < end; i++) {
if (currentSchedule[i].isNotEmpty) {
return i;
}
}
return null;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

final index = currentSchedule.indexWhere((item) => item.isNotEmpty, start);

if (index == -1) {
  return null;
}
return index;

или, вроде, в пакете collection уже есть готовый indexWhereOrNull

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Это твой же код :D
Но вообще надо попробовать

@KriseevM KriseevM Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

    final index = currentSchedule.indexWhere((item) => item.isNotEmpty, start);

    if (index == -1 || index >= end) {
      return null;
    }
    return index;

вот так как-то получилось

@KriseevM
KriseevM deployed to develop-android October 1, 2026 20:47 — with GitHub Actions Active
@KriseevM
KriseevM deployed to develop-ios October 1, 2026 20:47 — with GitHub Actions Active
@KriseevM
KriseevM deployed to develop-android October 1, 2026 20:47 — with GitHub Actions Active
@KriseevM
KriseevM deployed to develop-android October 1, 2026 20:58 — with GitHub Actions Active

This branch was successfully deployed

2 active deployments
develop-android — b556d23c Deployed Oct 1, 2026 by KriseevM via deploy #374
develop-ios — b556d23c Deployed Oct 1, 2026 by KriseevM via Build iOS app package (no codesign) #374
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UI] Улучшение внешнего вида расписания

3 participants