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.
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'),
),
),
);
}
}