day_night_themed_switch 1.0.0 copy "day_night_themed_switch: ^1.0.0" to clipboard
day_night_themed_switch: ^1.0.0 copied to clipboard

Custom Switch widget with day and night theme

example/lib/main.dart

import 'package:day_night_themed_switch/day_night_themed_switch.dart';
import 'package:flutter/material.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: "Day Night Switch",
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        scaffoldBackgroundColor: const Color(0xffd1d9e6),
      ),
      home: Scaffold(
        body: SafeArea(
          child: Center(
            child: SizedBox(
              height: 100,
              child: DayNightSwitch(value: false, onChanged: (_) {}),
            ),
          ),
        ),
      ),
    );
  }
}
15
likes
140
points
151
downloads
screenshot

Publisher

unverified uploader

Weekly Downloads

Custom Switch widget with day and night theme

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on day_night_themed_switch