f_verification_box 0.0.2 copy "f_verification_box: ^0.0.2" to clipboard
f_verification_box: ^0.0.2 copied to clipboard

验证码输入框

example/lib/main.dart

import 'package:f_verification_box_example/default_page.dart';
import 'package:flutter/material.dart';

import 'common_button.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(
      routes: <String, WidgetBuilder>{
        DefaultPage.routeName: (_) => const DefaultPage(),
      },
      home: Scaffold(
        appBar: AppBar(title: const Text('验证码')),
        body: Padding(
          padding: const EdgeInsets.symmetric(horizontal: 20),
          child: Column(children: const [
            CommonButton(
              title: '默认格式',
              routeName: DefaultPage.routeName,
            ),
          ]),
        ),
      ),
    );
  }
}
0
likes
140
pub points
44%
popularity

Publisher

unverified uploader

验证码输入框

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on f_verification_box