Skip to main content

native_trend 0.4.0 copy "native_trend: ^0.4.0" to clipboard
native_trend: ^0.4.0 copied to clipboard

Picks pub.dev packages for the latest platform design trends: native-view Liquid Glass on iOS and macOS, Material 3 Expressive on Android.

example/example.dart

import 'package:http/http.dart' as http;
import 'package:native_trend/native_trend.dart';

/// Ranks iOS Liquid Glass packages from code instead of the CLI, then
/// classifies one package on its own.
Future<void> main() async {
  final client = http.Client();
  try {
    final api = PubApi(client, cache: defaultCacheDir());
    final result = await TrendFinder(api).find('ios');
    print(renderText(result.ranked.take(3).toList()));

    final r = await api.fetchPackage('cupertino_native_better');
    final source = isPluginFor(r.package, 'ios')
        ? await api.fetchSourceText(r.package)
        : null;
    final c = Candidate.fromJson(
      package: r.package,
      score: r.score,
      kind: classifyGlass(source),
    );
    print(renderText([c]));
  } finally {
    client.close();
  }
}
0
likes
160
points
41
downloads

Documentation

API reference

Publisher

verified publisherseungpyo.online

Weekly Downloads

Picks pub.dev packages for the latest platform design trends: native-view Liquid Glass on iOS and macOS, Material 3 Expressive on Android.

Repository (GitHub)
View/report issues

Topics

#liquid-glass #ios #material-design #cli #ai

License

MIT (license)

Dependencies

args, http, pub_semver, yaml

More

Packages that depend on native_trend