country_currency_chooser 0.1.4
country_currency_chooser: ^0.1.4 copied to clipboard

A simple yet powerful, elegant, customizable, and efficient currency chooser dialog with search support.

example/example.dart

import 'package:flutter/material.dart';

import 'package:country_currency_chooser/country_currency_chooser.dart';

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

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

class _MyAppState extends State<MyApp> {
  bool requestFold = false;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        textTheme: TextTheme(
          bodyText2: TextStyle(
            color: Colors.deepPurple,
          ),
        ),
      ),
      home: Homepage(),
    );
  }
}

class Homepage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: RaisedButton(
          onPressed: () => showDialog(
            context: context,
            builder: (context) => CurrencyChooserDialog(
              backgroundColor: Colors.black,
              interfaceColor: Colors.white,
            ),
          ),
          child: Text('Select Currency'),
        ),
      ),
    );
  }
}
13
likes
110
pub points
30%
popularity

A simple yet powerful, elegant, customizable, and efficient currency chooser dialog with search support.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on country_currency_chooser