katana_flutter 0.15.0+18 copy "katana_flutter: ^0.15.0+18" to clipboard
katana_flutter: ^0.15.0+18 copied to clipboard

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_flutter/katana_flutter.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
110
pub points
1%
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

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

connectivity_plus, csv, device_info_plus, flutter, font_awesome_flutter, katana, package_info_plus, path_provider, share_plus, shared_preferences, url_launcher

More

Packages that depend on katana_flutter