skycap_audio_manager 1.0.2
skycap_audio_manager: ^1.0.2 copied to clipboard
A simple and customizable Flutter audio player package.
example/lib/main.dart
import 'package:example_example/home_page.dart';
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:get/get.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return GetMaterialApp(
theme: ThemeData.light(useMaterial3: true).copyWith(
primaryColor: Colors.green,
textTheme: TextTheme(
headlineSmall: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w600
)
)
),
darkTheme: ThemeData.dark(useMaterial3: true).copyWith(
primaryColor: Colors.white70,
textTheme: TextTheme(
headlineSmall: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w600
)
)
),
themeMode: ThemeMode.system,
home: HomePage(),
localizationsDelegates: [
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
supportedLocales: [
const Locale('en', 'US'), // English
const Locale('he', 'IL'), // Hebrew
const Locale('de', 'AT'), // Hebrew
const Locale('hi', 'HI'), // Hebrew
// ... other locales the app supports
],
);
}
}