culture_ui 0.1.0 copy "culture_ui: ^0.1.0" to clipboard
culture_ui: ^0.1.0 copied to clipboard

Semantic geo-context widgets that automatically adapt UI behavior based on cultural context. Goes beyond translation to handle cultural UX patterns like button placement, layout density, color semanti [...]

example/lib/main.dart

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

import 'pages/home_page.dart';

void main() {
  runApp(const CultureUiExample());
}

class CultureUiExample extends StatefulWidget {
  const CultureUiExample({super.key});

  @override
  State<CultureUiExample> createState() => _CultureUiExampleState();
}

class _CultureUiExampleState extends State<CultureUiExample> {
  CultureProfile _selectedProfile = CultureProfiles.american;

  @override
  Widget build(BuildContext context) {
    return CultureScope(
      profile: _selectedProfile,
      child: MaterialApp(
        title: 'culture_ui Example',
        theme: ThemeData(colorSchemeSeed: Colors.blue, useMaterial3: true),
        home: HomePage(
          selectedProfile: _selectedProfile,
          onProfileChanged: (profile) {
            setState(() => _selectedProfile = profile);
          },
        ),
      ),
    );
  }
}
1
likes
140
points
87
downloads

Publisher

unverified uploader

Weekly Downloads

Semantic geo-context widgets that automatically adapt UI behavior based on cultural context. Goes beyond translation to handle cultural UX patterns like button placement, layout density, color semantics, and more.

Repository (GitHub)
View/report issues

Topics

#i18n #localization #culture #widget #ux

Documentation

API reference

License

MIT (license)

Dependencies

flutter, intl

More

Packages that depend on culture_ui