demo_switch 0.0.6 copy "demo_switch: ^0.0.6" to clipboard
demo_switch: ^0.0.6 copied to clipboard

a switch with current.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:demo_switch/demo_switch.dart';
void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

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

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

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SwitchClass(),
    );
  }
}
2
likes
150
points
47
downloads

Publisher

unverified uploader

Weekly Downloads

a switch with current.

Homepage

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter, flutter_svg

More

Packages that depend on demo_switch