external_link_account_modal 1.0.0 external_link_account_modal: ^1.0.0 copied to clipboard
An easy-to-use widget that complies with Apple's External Link Account requirements for reader apps
import 'package:external_link_account_modal/external_link_account_modal.dart';
import 'package:flutter/material.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'External Link Account Modal Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const MyHomePage(),
);
}
}
class MyHomePage extends StatelessWidget {
const MyHomePage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(),
body: const Center(
child: ExternalLinkAccountText(
url: 'https://example.com',
developerName: 'Example Developer',
locale: 'en',
),
),
);
}
}