material library

Material and Cupertino interop for shad.

package:shad/shad.dart does not depend on Material or Cupertino. Import this library as well when an app puts Material or Cupertino widgets next to shad's, and wrap them in a ShadMaterial:

import 'package:shad/material.dart';
import 'package:shad/shad.dart';

ShadApp(
  builder: (context, child) => ShadMaterial(child: child!),
  home: const HomePage(),
)

This library uses the Material and Cupertino libraries in the Flutter SDK (package:flutter/material.dart), not the material_ui and cupertino_ui packages.

Classes

ShadMaterial
Lets Material and Cupertino widgets in child follow the nearest shad theme.

Functions

shadMaterialThemeFrom(ShadThemeData themeData) → ThemeData
Derives the Material ThemeData a ShadThemeData implies: its colours, font, divider, text selection, icon and scrollbar themes.