build_badge 0.0.3 build_badge: ^0.0.3 copied to clipboard
Badge to distinguish different builds. Such as staging, dev, production etc
import 'package:build_badge/build_badge.dart';
import 'package:flutter/material.dart';
import 'home_page.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return BuildBadge(
text: "DEV",
textColor: Colors.white,
backgroundColor: Colors.red,
visible: true,
child: MaterialApp(
title: 'App Badge Demo',
debugShowCheckedModeBanner: false,
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const HomePage(),
),
);
}
}