code_field 1.22.0 copy "code_field: ^1.22.0" to clipboard
code_field: ^1.22.0 copied to clipboard

discontinued

Widget providing input code field to insert pin, sms and other auth codes.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_control/core.dart';

import 'auth_control.dart';
import 'auth_page.dart';

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return ControlRoot(
      initializers: {
        AuthControl: (_) => AuthControl(),
      },
      states: [
        AppState.main.build((context) => AuthPage()),
      ],
      app: (setup, home) => MaterialApp(
        key: setup.key,
        home: home,
        title: 'Code Field',
        theme: ThemeData(
          backgroundColor: Colors.white,
          primaryColor: Colors.lightBlueAccent,
          primaryColorDark: Colors.blueAccent,
        ),
      ),
    );
  }
}
21
likes
40
pub points
10%
popularity

Publisher

verified publisherbasecontrol.dev

Widget providing input code field to insert pin, sms and other auth codes.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on code_field