tencent_cloud_chat_uikit_fl.../lib/ui/utils/shared_theme.dart

23 lines
699 B
Dart
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ignore_for_file: unused_import
import 'package:flutter/material.dart';
import 'package:tim_ui_kit/tim_ui_kit.dart';
// class SharedThemeWidget extends InheritedWidget {
// final TUITheme theme;
// const SharedThemeWidget(
// {Key? key, required Widget child, required this.theme})
// : super(key: key, child: child);
// //定义一个便捷方法方便子树中的widget获取共享数据
// static SharedThemeWidget? of(BuildContext context) {
// return context.dependOnInheritedWidgetOfExactType<SharedThemeWidget>();
// }
// @override
// bool updateShouldNotify(covariant SharedThemeWidget oldWidget) {
// return oldWidget.theme != theme;
// }
// }