brain_dev_tools 1.0.5 copy "brain_dev_tools: ^1.0.5" to clipboard
brain_dev_tools: ^1.0.5 copied to clipboard

brain_dev_tools est un plugin tout-en-un conçu pour simplifier le développement Flutter en regroupant plusieurs utilitaires essentiels en un seul package. Il inclut des outils pour la gestion des date [...]

example/lib/main.dart

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

import 'package:flutter/services.dart';
import 'package:brain_dev_tools/brain_dev_tools.dart';

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

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String _platformVersion = 'Unknown';
  final _brainDevToolsPlugin = BrainDevTools();

  @override
  void initState() {
    super.initState();
    initPlatformState();
  }

  // Platform messages are asynchronous, so we initialize in an async method.
  Future<void> initPlatformState() async {
    String platformVersion;
    // Platform messages may fail, so we use a try/catch PlatformException.
    // We also handle the message potentially returning null.
    try {
      platformVersion =
          await _brainDevToolsPlugin.getPlatformVersion() ?? 'Unknown platform version';
    } on PlatformException {
      platformVersion = 'Failed to get platform version.';
    }

    // If the widget was removed from the tree while the asynchronous platform
    // message was in flight, we want to discard the reply rather than calling
    // setState to update our non-existent appearance.
    if (!mounted) return;

    setState(() {
      _platformVersion = platformVersion;
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Text('Running on: $_platformVersion\n'),
        ),
      ),
    );
  }
}
1
likes
60
points
164
downloads

Publisher

unverified uploader

Weekly Downloads

brain_dev_tools est un plugin tout-en-un conçu pour simplifier le développement Flutter en regroupant plusieurs utilitaires essentiels en un seul package. Il inclut des outils pour la gestion des dates, le stockage local, la manipulation de chaînes, les conversions de données et bien plus encore. Idéal pour les développeurs cherchant à optimiser leur code avec des fonctions réutilisables et performantes.

Repository (GitHub)

License

MIT (license)

Dependencies

app_links, auto_size_text, bot_toast, cached_network_image, connectivity_plus, device_info_plus, easy_image_viewer, flutter, flutter_custom_tabs, flutter_flavor, flutter_smart_dialog, flutter_speed_dial, flutter_staggered_grid_view, flutter_web_plugins, flutter_widget_from_html_core, font_awesome_flutter, get, google_fonts, http, http_parser, in_app_update, intl, package_info_plus, path, path_provider, plugin_platform_interface, pull_to_refresh, share_plus, shared_preferences, shimmer, showcaseview, timeago, url_launcher, uuid, web

More

Packages that depend on brain_dev_tools