katana 0.8.2+16 copy "katana: ^0.8.2+16" to clipboard
katana: ^0.8.2+16 copied to clipboard

unlistedoutdated

Package containing a collection of basic Flutter utilities. It provides the base part of the Masamune framework.

example/lib/main.dart

// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// ignore_for_file: public_member_api_docs
import 'package:flutter/material.dart';
import 'package:katana/katana.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: "Localize Demo",
      home: LocalizeDemo(),
    );
  }
}

class LocalizeDemo extends StatefulWidget {
  const LocalizeDemo();

  @override
  State<StatefulWidget> createState() => LocalizeDemoState();
}

class LocalizeDemoState extends State<LocalizeDemo> {
  @override
  void initState() {
    super.initState();
    Localize.initialize();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("Localize Demo"),
      ),
      body: Center(
        child: Text("Name".localize()),
      ),
    );
  }
}
0
likes
0
pub points
44%
popularity

Publisher

verified publishermathru.net

Package containing a collection of basic Flutter utilities. It provides the base part of the Masamune framework.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

connectivity, crypto, csv, device_info, device_info_platform_interface, flutter, intl, package_info_plus, path_provider, shared_preferences, sprintf, typed_data, url_launcher, uuid

More

Packages that depend on katana