taibapp_custom_code 1.1.0 copy "taibapp_custom_code: ^1.1.0" to clipboard
taibapp_custom_code: ^1.1.0 copied to clipboard

Custom code for taib app

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {

  int currentValue = 0;
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.black,
      body: Padding(
        padding: const EdgeInsets.symmetric(horizontal: 50),
        child: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              TaibSlider1(
                secondsLength: 200,
                currentValue: currentValue,
                onChanged: (value) {
                  setState(() {
                    currentValue = value;
                  });
                },
              ),
            ],
          ),
        ),
      ),
    );
  }
}
1
likes
115
points
68
downloads

Publisher

unverified uploader

Weekly Downloads

Custom code for taib app

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_local_notifications, freezed_annotation, home_widget, json_annotation, just_audio, timezone

More

Packages that depend on taibapp_custom_code