bs_flutter_inputtext 1.0.4 copy "bs_flutter_inputtext: ^1.0.4" to clipboard
bs_flutter_inputtext: ^1.0.4 copied to clipboard

outdated

Input text with many variations of appearance and form

example/lib/main.dart

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

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Input Text'),
        ),
        body: Container(
          padding: EdgeInsets.all(20.0),
          child: Column(
            children: [
              Container(
                margin: EdgeInsets.only(bottom: 20.0),
                child: BsInput(
                  disabled: true,
                  size: BsInputSize.sm,
                  hintText: 'Small input',
                  controller: TextEditingController(),
                  validators: [BsInputValidator.required],
                ),
              ),
              Container(
                margin: EdgeInsets.only(bottom: 20.0),
                child: BsInput(
                  size: BsInputSize.md,
                  hintTextLabel: 'Medium input',
                  controller: TextEditingController(),
                  validators: [BsInputValidator.required],
                ),
              ),
              Container(
                margin: EdgeInsets.only(bottom: 20.0),
                child: BsInput(
                  size: BsInputSize.lg,
                  obscureText: true,
                  hintTextLabel: 'Large input',
                  controller: TextEditingController(),
                ),
              ),
              Container(
                margin: EdgeInsets.only(bottom: 20.0),
                child: BsInput(
                  disabled: true,
                  style: BsInputStyle.outlineBottom,
                  size: BsInputSize.outlineBottomSm,
                  hintTextLabel: 'Small input',
                  controller: TextEditingController(),
                ),
              ),
              Container(
                margin: EdgeInsets.only(bottom: 20.0),
                child: BsInput(
                  style: BsInputStyle.outlineBottom,
                  size: BsInputSize.outlineBottomMd,
                  hintTextLabel: 'Medium input',
                  controller: TextEditingController(),
                ),
              ),
              Container(
                margin: EdgeInsets.only(bottom: 20.0),
                child: BsInput(
                  style: BsInputStyle.outlineBottom,
                  size: BsInputSize.outlineBottomLg,
                  hintTextLabel: 'Large input',
                  maxLines: 5,
                  controller: TextEditingController(),
                  validators: [BsInputValidator.required],
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
2
likes
0
pub points
31%
popularity

Publisher

unverified uploader

Input text with many variations of appearance and form

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

bs_flutter_utils, flutter, flutter_web_plugins

More

Packages that depend on bs_flutter_inputtext