gender_selector 1.0.6 copy "gender_selector: ^1.0.6" to clipboard
gender_selector: ^1.0.6 copied to clipboard

A Flutter Package for gender selector widget for the app. Using this package you can allow the user to select the gender by the beautiful widget. Show your love on this package.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
 
  @override
  Widget build(BuildContext context) {
  
    return Scaffold(
      appBar: AppBar(
       
        title: Text(widget.title),
      ),
      body: Center(
       
        child: GenderSelector(
          onChanged: (gender) {
            print(gender);
          },
        ),

      ),
      
    );
  }
}
5
likes
20
pub points
58%
popularity

Publisher

unverified uploader

A Flutter Package for gender selector widget for the app. Using this package you can allow the user to select the gender by the beautiful widget. Show your love on this package.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on gender_selector