sm_common_plugin 1.0.0
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');
},)
],
),
),
);
}
}