Skip to content

Commit 6afd2c7

Browse files
rajveermalviyachrisbobbe
authored andcommitted
deps: Migrate to package:material_ui and package:cupertino_ui
Fixes zulip#2463. Flutter has moved its Material and Cupertino libraries out of the SDK, into these standalone packages: https://docs.flutter.dev/release/breaking-changes/material-ui-and-cupertino-ui Done with `dart fix --apply --code=migrate_design_widgets`, then sorting the new imports and pubspec.yaml entries, and replacing the `any` constraints it writes with the usual caret ones. gen-l10n doesn't know about the new packages yet, so its ZulipLocalizations.localizationsDelegates lists the in-SDK delegates: flutter/flutter#191072 Write that list ourselves instead, with material_ui's delegates. The generated list still needs the l10n.yaml deprecation suppression, so point its TODO at that issue too.
1 parent bf99db0 commit 6afd2c7

108 files changed

Lines changed: 170 additions & 113 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎l10n.yaml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ output-class: ZulipLocalizations
1111
preferred-supported-locales: [ en ]
1212
nullable-getter: false
1313
header: |
14-
// TODO(#2463) stop using the deprecated members
14+
// TODO(upstream) drop once gen-l10n stops using the deprecated members:
15+
// https://github.com/flutter/flutter/issues/191072
1516
// ignore_for_file: deprecated_member_use

‎lib/example/sticky_header.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/// so as to set the app ID differently.
1818
library;
1919

20-
import 'package:flutter/material.dart';
20+
import 'package:material_ui/material_ui.dart';
2121

2222
import '../widgets/sticky_header.dart';
2323

‎lib/generated/l10n/zulip_localizations.dart‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// TODO(#2463) stop using the deprecated members
1+
// TODO(upstream) drop once gen-l10n stops using the deprecated members:
2+
// https://github.com/flutter/flutter/issues/191072
23
// ignore_for_file: deprecated_member_use
34

45
import 'dart:async';

‎lib/generated/l10n/zulip_localizations_ar.dart‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// TODO(#2463) stop using the deprecated members
1+
// TODO(upstream) drop once gen-l10n stops using the deprecated members:
2+
// https://github.com/flutter/flutter/issues/191072
23
// ignore_for_file: deprecated_member_use
34

45
// ignore: unused_import

‎lib/generated/l10n/zulip_localizations_de.dart‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// TODO(#2463) stop using the deprecated members
1+
// TODO(upstream) drop once gen-l10n stops using the deprecated members:
2+
// https://github.com/flutter/flutter/issues/191072
23
// ignore_for_file: deprecated_member_use
34

45
// ignore: unused_import

‎lib/generated/l10n/zulip_localizations_el.dart‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// TODO(#2463) stop using the deprecated members
1+
// TODO(upstream) drop once gen-l10n stops using the deprecated members:
2+
// https://github.com/flutter/flutter/issues/191072
23
// ignore_for_file: deprecated_member_use
34

45
// ignore: unused_import

‎lib/generated/l10n/zulip_localizations_en.dart‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// TODO(#2463) stop using the deprecated members
1+
// TODO(upstream) drop once gen-l10n stops using the deprecated members:
2+
// https://github.com/flutter/flutter/issues/191072
23
// ignore_for_file: deprecated_member_use
34

45
// ignore: unused_import

‎lib/generated/l10n/zulip_localizations_es.dart‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// TODO(#2463) stop using the deprecated members
1+
// TODO(upstream) drop once gen-l10n stops using the deprecated members:
2+
// https://github.com/flutter/flutter/issues/191072
23
// ignore_for_file: deprecated_member_use
34

45
// ignore: unused_import

‎lib/generated/l10n/zulip_localizations_et.dart‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// TODO(#2463) stop using the deprecated members
1+
// TODO(upstream) drop once gen-l10n stops using the deprecated members:
2+
// https://github.com/flutter/flutter/issues/191072
23
// ignore_for_file: deprecated_member_use
34

45
// ignore: unused_import

‎lib/generated/l10n/zulip_localizations_fr.dart‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// TODO(#2463) stop using the deprecated members
1+
// TODO(upstream) drop once gen-l10n stops using the deprecated members:
2+
// https://github.com/flutter/flutter/issues/191072
23
// ignore_for_file: deprecated_member_use
34

45
// ignore: unused_import

0 commit comments

Comments
 (0)