tw_step_counter 0.1.0 copy "tw_step_counter: ^0.1.0" to clipboard
tw_step_counter: ^0.1.0 copied to clipboard

outdated

This is a simple step caculator widget.

example/lib/main.dart

/*
 * @Author: zhengzeqin
 * @Date: 2022-07-17 22:49:40
 * @LastEditTime: 2022-07-18 11:29:37
 * @Description: your project
 */
import 'package:flutter/material.dart';
import 'package:tw_step_counter/tw_step_counter.dart';

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

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('example app'),
        ),
        body: const Center(
          child: SizedBox(
            width: 323,
            child: TWStepCounter(
              unit: '元/天',
              currentValue: 100,
              mixValue: 75,
              maxValue: 250,
              defaultColor: Colors.red,
              highlightColor: Colors.yellow,
              borderLineColor: Colors.orange,
              valuePadding: EdgeInsets.only(
                left: 10,
                right: 10,
              ),
            ),
          ),
        ),
      ),
    );
  }
}
0
likes
0
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

This is a simple step caculator widget.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on tw_step_counter

Packages that implement tw_step_counter