rerune 0.7.0 copy "rerune: ^0.7.0" to clipboard
rerune: ^0.7.0 copied to clipboard

OTA localization updates for Flutter apps with build_runner code generation.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:rerune/rerune.dart';

import 'l10n/gen/app_localizations.rerune.g.dart';
import 'pages/menu_page.dart';

const _otaPublishId =
    '74268f4ce18af2b19538b4193200cc58fe63af6ffb300f32aec0683965504232';

void main() {
  ReRune.setup(
    otaPublishId: _otaPublishId,
    localizations: reRuneAppLocalizationsConfig,
    updatePolicy: const ReRuneUpdatePolicy(checkOnStart: true),
  );
  runApp(const OtaExampleApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Rerune OTA',
      localizationsDelegates: ReRune.localizationsDelegates,
      supportedLocales: ReRune.supportedLocales,
      home: const MenuPage(),
    );
  }
}
0
likes
0
points
30
downloads

Publisher

unverified uploader

Weekly Downloads

OTA localization updates for Flutter apps with build_runner code generation.

Homepage
View/report issues

License

unknown (license)

Dependencies

analyzer, build, crypto, flutter, glob, http, intl, path_provider, shared_preferences, source_gen, yaml

More

Packages that depend on rerune