change_charity_components 0.0.9 copy "change_charity_components: ^0.0.9" to clipboard
change_charity_components: ^0.0.9 copied to clipboard

Components for the Change Charity flutter application. Easily integrate our custom paints, custom textfields, and submit rows. More to come soon hopefully. Help is always welcome.

example/main.dart

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

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Change Components Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  TextEditingController _textController;
  FocusNode _focusNode;
  String _errMsg = '';

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: ChangeTextInput(
        autofillHint: AutofillHints.password,
        controller: _textController,
        focusNode: _focusNode,
        hintText: "Password",
        prefixIcon: Icons.lock,
        isPassword: true,
        errMsg: _errMsg,
        errFunc: (s) {
          setState(() {
            _errMsg = s;
          });
        },
      ),
    );
  }
}
1
likes
40
pub points
0%
popularity

Publisher

unverified uploader

Components for the Change Charity flutter application. Easily integrate our custom paints, custom textfields, and submit rows. More to come soon hopefully. Help is always welcome.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on change_charity_components