localize_generator_keys 0.0.4 copy "localize_generator_keys: ^0.0.4" to clipboard
localize_generator_keys: ^0.0.4 copied to clipboard

A CLI to extract hardcoded text and generate localization JSON fully automation localization migrate from your hardcoded strings.

example/example.dart

import 'package:flutter/material.dart';

class DemoPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Welcome Page"),
      ),
      body: Padding(
        padding: const EdgeInsets.all(16.0),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Text("Hello, User!"),
            SizedBox(height: 10),
            ElevatedButton(
              child: Text("Login"),
              onPressed: () {},
            ),
            TextButton(
              child: Text("Forgot Password?"),
              onPressed: () {},
            ),
            ElevatedButton(
              child: Text("Sign Up"),
              onPressed: () {},
            ),
            Row(
              children: [
                Icon(Icons.info),
                Text("Need Help? Contact support."),
              ],
            ),
            RichText(
              text: TextSpan(
                style: TextStyle(color: Colors.black),
                text: "Terms and Conditions apply.",
              ),
            ),
            Text("Thank you for using our app."),
            Text("Please update to the latest version."),
            Text("This feature is not available."),
            Text("Settings"),
            Text("Logout"),
          ],
        ),
      ),
    );
  }
}
3
likes
150
points
138
downloads
screenshot

Publisher

verified publisherabdelrhmantolba.online

Weekly Downloads

A CLI to extract hardcoded text and generate localization JSON fully automation localization migrate from your hardcoded strings.

Documentation

API reference

License

MIT (license)

Dependencies

path

More

Packages that depend on localize_generator_keys