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

discontinued
outdated

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
0
pub points
0%
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_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