difficulty_toggle 0.0.3 copy "difficulty_toggle: ^0.0.3" to clipboard
difficulty_toggle: ^0.0.3 copied to clipboard

Library for difficutly value toggle widget in Flutter. Easy, medium, hard...no problem!

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:difficulty_toggle/difficulty_toggle.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Value Toggle Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: Scaffold(
        body: Center(
          child: Container(
            padding: EdgeInsets.all(4.0),
            child: DifficultyToggle(
              startingDifficulty: 'easy',
              onValueClick: (val) => print(val),
            ),
          ),
        ),
      ),
    );
  }
}
0
likes
100
pub points
0%
popularity

Publisher

unverified uploader

Library for difficutly value toggle widget in Flutter. Easy, medium, hard...no problem!

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on difficulty_toggle