Files
zarzet 962e582acc chore(flutter): move to Flutter 3.50.0 and the material_ui packages
Flutter 3.50 deprecates its built-in Material and Cupertino libraries in
favour of the material_ui and cupertino_ui packages. The imports move
with the official fix (dart fix, migrate_design_widgets); the app's old
two-library theme bridge collapses into one Theme type.

- MaterialExpressiveScope keeps the complete host theme nearest its
  child. The reduced copy made for the expressive widgets now shares the
  app's Theme type and would hide component themes and extensions.
- LegacyThemeBrightness hands the brightness to the glass package, which
  still reads Flutter's built-in theme.
- appLocalizationsDelegates lists the material_ui localization delegates;
  the generated list still names the built-in ones.
- Tests: findByTooltip and pageBack replace the flutter_test helpers that
  only know the built-in widgets, and several tests that had gone stale
  against earlier app changes are repaired.
2026-11-15 23:33:29 +07:00

30 lines
970 B
Dart

import 'package:cupertino_ui/cupertino_ui.dart' show CupertinoIcons;
import 'package:material_ui/material_ui.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mornye/theme/mornye_icons.dart';
void main() {
test('Mornye directional icons mirror in right-to-left layouts', () {
for (final icon in [
mornyeIconFor(Icons.arrow_back),
mornyeIconFor(Icons.chevron_left),
mornyeArrowForward,
CupertinoIcons.back,
CupertinoIcons.forward,
CupertinoIcons.right_chevron,
]) {
expect(icon.matchTextDirection, isTrue, reason: '$icon');
}
// The mirrored glyphs are the same shapes as the SF-style names.
expect(
CupertinoIcons.back.codePoint,
CupertinoIcons.chevron_back.codePoint,
);
expect(
CupertinoIcons.forward.codePoint,
CupertinoIcons.chevron_forward.codePoint,
);
expect(mornyeArrowForward.codePoint, CupertinoIcons.arrow_right.codePoint);
});
}