material library

Material and Cupertino interop for una.

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

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

UnaApp(
  builder: (context, child) => UnaMaterial(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

UnaMaterial
Lets Material and Cupertino widgets in child follow the nearest una theme.

Functions

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