oghref_cupertino 2.1.1 copy "oghref_cupertino: ^2.1.1" to clipboard
oghref_cupertino: ^2.1.1 copied to clipboard

Cupertino themed widget for generating rich information link from URL.

example/lib/main.dart

import 'package:flutter/cupertino.dart';
import 'package:oghref_cupertino/oghref_cupertino.dart';
import 'package:provider/provider.dart';

import 'app.dart';
import 'theme_preference.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  OgHrefCupertinoBinding.ensureInitialized();

  runApp(const OgHrefCupertinoExampleApp());
}

class OgHrefCupertinoExampleApp extends StatelessWidget {
  const OgHrefCupertinoExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    return ChangeNotifierProvider(
        create: (_) => ThemePreference(),
        builder: (context, _) {
          final pref = context.watch<ThemePreference>();

          return CupertinoApp(
              theme: CupertinoThemeData(
                  brightness:
                      pref.darkMode ? Brightness.dark : Brightness.light),
              home: const OgHrefCupertinoExampleHome());
        });
  }
}
3
likes
150
points
125
downloads
screenshot

Publisher

verified publisherrk0cc.xyz

Weekly Downloads

Cupertino themed widget for generating rich information link from URL.

Repository (GitHub)
View/report issues

Topics

#web #link #graph #http #apple

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

cupertino_icons, flutter, media_kit, meta, oghref_builder, oghref_media_control, oghref_model, page_view_dot_indicator

More

Packages that depend on oghref_cupertino