sm_common_plugin 1.0.0 copy "sm_common_plugin: ^1.0.0" to clipboard
sm_common_plugin: ^1.0.0 copied to clipboard

A Flutter plugin.

example/lib/main.dart

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

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


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

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

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

class _MyAppState extends State<MyApp> {

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Column(
          children: [
            50.spaceVer,
            const SMText(data: 'A custom flutter Text plugin'),
            30.spaceVer,
            SMTextField(controller: TextEditingController(), hintText: 'A custom flutter TextField plugin', border: OutlineInputBorder(), focusNode: FocusNode(), onEditingComplete: (text) {
              print('=======================>>>>>>>>>>>> $text');
            },)
          ],
        ),
      ),
    );
  }
}
1
likes
110
points
6
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin.

Homepage

Documentation

API reference

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on sm_common_plugin

Packages that implement sm_common_plugin