First commit

This commit is contained in:
2025-03-17 13:58:47 +01:00
commit fff5617757
159 changed files with 6972 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import '../../globals.dart';
class ReflexAppBar extends StatelessWidget implements PreferredSizeWidget {
final Function()? onBackCallback;
const ReflexAppBar({Key? key, required this.actions, this.onBackCallback})
: super(key: key);
final List<Widget> actions;
final webHeight = 200;
@override
Widget build(BuildContext context) {
return AppBar(
leading: onBackCallback != null
? IconButton(
icon: const Icon(Icons.arrow_back_ios, color: Colors.white),
onPressed: onBackCallback,
)
: null,
backgroundColor: Globals.RP_PRIMARY_COLOR,
centerTitle: false,
actions: actions,
title: const Text('Reflex Platform', style: TextStyle(color: Colors.white)),
);
}
@override
Size get preferredSize => Size.fromHeight(kToolbarHeight);
}