glass_button_package 0.0.2 glass_button_package: ^0.0.2 copied to clipboard
This project includes a sample button for educational purposes that demonstrates the glass effect.
import 'package:example/view_home/home_view.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() {
SystemChrome.setSystemUIOverlayStyle(
// Remove statusBar
const SystemUiOverlayStyle(statusBarColor: Colors.transparent));
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const HomeView());
}
}