Skip to content

Commit

Permalink
ios: Disable material3
Browse files Browse the repository at this point in the history
  • Loading branch information
violet-dev committed Dec 3, 2023
1 parent 20611e0 commit d82a862
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 25 deletions.
16 changes: 8 additions & 8 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ PODS:
- Flutter (1.0.0)
- flutter_downloader (0.0.1):
- Flutter
- flutter_image_compress (1.0.0):
- flutter_image_compress_common (1.0.0):
- Flutter
- Mantle
- SDWebImage
Expand Down Expand Up @@ -211,7 +211,7 @@ PODS:
- SDWebImage (5.18.3):
- SDWebImage/Core (= 5.18.3)
- SDWebImage/Core (5.18.3)
- SDWebImageWebPCoder (0.14.0):
- SDWebImageWebPCoder (0.14.2):
- libwebp (~> 1.0)
- SDWebImage/Core (~> 5.17)
- shared_preferences_foundation (0.0.1):
Expand All @@ -236,7 +236,7 @@ DEPENDENCIES:
- firebase_crashlytics (from `.symlinks/plugins/firebase_crashlytics/ios`)
- Flutter (from `Flutter`)
- flutter_downloader (from `.symlinks/plugins/flutter_downloader/ios`)
- flutter_image_compress (from `.symlinks/plugins/flutter_image_compress/ios`)
- flutter_image_compress_common (from `.symlinks/plugins/flutter_image_compress_common/ios`)
- flutter_inappwebview (from `.symlinks/plugins/flutter_inappwebview/ios`)
- flutter_js (from `.symlinks/plugins/flutter_js/ios`)
- flutter_keyboard_visibility (from `.symlinks/plugins/flutter_keyboard_visibility/ios`)
Expand Down Expand Up @@ -295,8 +295,8 @@ EXTERNAL SOURCES:
:path: Flutter
flutter_downloader:
:path: ".symlinks/plugins/flutter_downloader/ios"
flutter_image_compress:
:path: ".symlinks/plugins/flutter_image_compress/ios"
flutter_image_compress_common:
:path: ".symlinks/plugins/flutter_image_compress_common/ios"
flutter_inappwebview:
:path: ".symlinks/plugins/flutter_inappwebview/ios"
flutter_js:
Expand Down Expand Up @@ -341,7 +341,7 @@ SPEC CHECKSUMS:
FirebaseSessions: 96e7781e545929cde06dd91088ddbb0841391b43
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
flutter_downloader: b7301ae057deadd4b1650dc7c05375f10ff12c39
flutter_image_compress: 5a5e9aee05b6553048b8df1c3bc456d0afaac433
flutter_image_compress_common: ec1d45c362c9d30a3f6a0426c297f47c52007e3e
flutter_inappwebview: 3d32228f1304635e7c028b0d4252937730bbc6cf
flutter_js: 95929d4e146e8ceb1c8e1889d8c2065c5d840076
flutter_keyboard_visibility: 0339d06371254c3eb25eeb90ba8d17dca8f9c069
Expand All @@ -362,7 +362,7 @@ SPEC CHECKSUMS:
PromisesSwift: 28dca69a9c40779916ac2d6985a0192a5cb4a265
Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96
SDWebImage: 96e0c18ef14010b7485210e92fac888587ebb958
SDWebImageWebPCoder: 3027af94522d94df79c21c070894c8a2128927ff
SDWebImageWebPCoder: 633b813fca24f1de5e076bcd7f720c038b23892b
shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126
sqflite: 31f7eba61e3074736dff8807a9b41581e4f7f15a
SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f
Expand All @@ -372,4 +372,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 3d2608411ef731a5e331f61617c828db1f3917b7

COCOAPODS: 1.13.0
COCOAPODS: 1.14.2
4 changes: 2 additions & 2 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@
"${BUILT_PRODUCTS_DIR}/device_info_plus/device_info_plus.framework",
"${BUILT_PRODUCTS_DIR}/file_picker/file_picker.framework",
"${BUILT_PRODUCTS_DIR}/flutter_downloader/flutter_downloader.framework",
"${BUILT_PRODUCTS_DIR}/flutter_image_compress/flutter_image_compress.framework",
"${BUILT_PRODUCTS_DIR}/flutter_image_compress_common/flutter_image_compress_common.framework",
"${BUILT_PRODUCTS_DIR}/flutter_inappwebview/flutter_inappwebview.framework",
"${BUILT_PRODUCTS_DIR}/flutter_js/flutter_js.framework",
"${BUILT_PRODUCTS_DIR}/flutter_keyboard_visibility/flutter_keyboard_visibility.framework",
Expand Down Expand Up @@ -332,7 +332,7 @@
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/device_info_plus.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/file_picker.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_downloader.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_image_compress.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_image_compress_common.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_inappwebview.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_js.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_keyboard_visibility.framework",
Expand Down
1 change: 1 addition & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class MyApp extends StatelessWidget {
return DynamicTheme(
defaultBrightness: Brightness.light,
data: (brightness) => ThemeData(
useMaterial3: false,
brightness: brightness,
bottomSheetTheme:
BottomSheetThemeData(backgroundColor: Colors.black.withOpacity(0)),
Expand Down
2 changes: 2 additions & 0 deletions lib/pages/hot/hot_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ class _HotPageState extends ThemeSwitchableState<HotPage>
: Colors.grey.shade50,
icon: Theme(
data: ThemeData(
useMaterial3: false,
iconTheme: IconThemeData(
color: !Settings.themeWhat ? Colors.black : Colors.white)),
child: const Icon(MdiIcons.finance),
Expand Down Expand Up @@ -262,6 +263,7 @@ class _HotPageState extends ThemeSwitchableState<HotPage>
children: [
Theme(
data: ThemeData(
useMaterial3: false,
iconTheme: IconThemeData(
color: !Settings.themeWhat ? Colors.black : Colors.white)),
child: Icon(
Expand Down
2 changes: 2 additions & 0 deletions lib/pages/settings/settings_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ class _SettingsPageState extends State<SettingsPage>
await Settings.setThemeBlack(!Settings.themeBlack);
DynamicTheme.of(context)!.setThemeData(
ThemeData(
useMaterial3: false,
brightness: Theme.of(context).brightness,
bottomSheetTheme: BottomSheetThemeData(
backgroundColor: Colors.black.withOpacity(0)),
Expand Down Expand Up @@ -417,6 +418,7 @@ class _SettingsPageState extends State<SettingsPage>
await Settings.setThemeFlat(newValue);
DynamicTheme.of(context)!.setThemeData(
ThemeData(
useMaterial3: false,
brightness: Theme.of(context).brightness,
bottomSheetTheme: BottomSheetThemeData(
backgroundColor: Colors.black.withOpacity(0)),
Expand Down
1 change: 1 addition & 0 deletions lib/widgets/article_item/article_list_item_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ class _DetailWidget extends StatelessWidget {
margin: const EdgeInsets.fromLTRB(8, 4, 4, 4),
child: Theme(
data: ThemeData(
useMaterial3: false,
iconTheme: IconThemeData(
color: !Settings.themeWhat ? Colors.black : Colors.white)),
child: Column(
Expand Down
5 changes: 4 additions & 1 deletion lib/widgets/article_item/thumbnail.dart
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,10 @@ class PagesOverlayWidget extends StatelessWidget {
child: Transform(
transform: Matrix4.identity()..scale(0.9),
child: Theme(
data: ThemeData(canvasColor: Colors.transparent),
data: ThemeData(
useMaterial3: false,
canvasColor: Colors.transparent,
),
child: RawChip(
labelPadding: const EdgeInsets.all(0.0),
label: Text(
Expand Down
26 changes: 13 additions & 13 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,10 @@ packages:
dependency: "direct main"
description:
name: collection
sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
url: "https://pub.dev"
source: hosted
version: "1.17.2"
version: "1.18.0"
community_charts_common:
dependency: transitive
description:
Expand Down Expand Up @@ -1083,10 +1083,10 @@ packages:
dependency: transitive
description:
name: meta
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
url: "https://pub.dev"
source: hosted
version: "1.9.1"
version: "1.10.0"
mime:
dependency: transitive
description:
Expand Down Expand Up @@ -1497,18 +1497,18 @@ packages:
dependency: transitive
description:
name: stack_trace
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
url: "https://pub.dev"
source: hosted
version: "1.11.0"
version: "1.11.1"
stream_channel:
dependency: transitive
description:
name: stream_channel
sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
url: "https://pub.dev"
source: hosted
version: "2.1.1"
version: "2.1.2"
stream_transform:
dependency: transitive
description:
Expand Down Expand Up @@ -1553,10 +1553,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
url: "https://pub.dev"
source: hosted
version: "0.6.0"
version: "0.6.1"
timeago:
dependency: "direct main"
description:
Expand Down Expand Up @@ -1713,10 +1713,10 @@ packages:
dependency: transitive
description:
name: web
sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
url: "https://pub.dev"
source: hosted
version: "0.1.4-beta"
version: "0.3.0"
web_socket_channel:
dependency: transitive
description:
Expand Down Expand Up @@ -1798,5 +1798,5 @@ packages:
source: hosted
version: "3.1.2"
sdks:
dart: ">=3.1.0 <4.0.0"
dart: ">=3.2.0-194.0.dev <4.0.0"
flutter: ">=3.13.0"
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ dependencies:
flutter_windowmanager: ^0.2.0
fluttertoast: ^8.0.9
freezed_annotation:
get: ^4.1.4
get: ^4.6.6
gradient_widgets: ^0.6.0
html: ^0.15.0
html_unescape: ^2.0.0
Expand Down

0 comments on commit d82a862

Please sign in to comment.