taibapp_custom_code 1.1.0
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;
});
},
),
],
),
),
),
);
}
}