Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/tools/ui/widgets/admin_button.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:heroicons/heroicons.dart';
import 'package:titan/tools/constants.dart';
import 'package:flutter/widget_previews.dart';

class AdminButton extends StatelessWidget {
final VoidCallback onTap;
Expand All @@ -17,6 +18,13 @@ class AdminButton extends StatelessWidget {
this.colors,
});

@Preview(name: "Truc", brightness: .light, size: Size(500, 500))
static Widget truc() {
return Center(
child: AdminButton(onTap: () {}, text: "Yo"),
);
}

@override
Widget build(BuildContext context) {
final useColors = colors != null;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1659,5 +1659,5 @@ packages:
source: hosted
version: "3.1.3"
sdks:
dart: ">=3.9.2 <4.0.0"
dart: ">=3.10.0 <4.0.0"
flutter: ">=3.38.6 <4.0.0"