| 1234567891011121314151617181920 |
- import 'package:flutter/material.dart';
- import 'package:get/get.dart';
- abstract class BasePage<T extends GetxController> extends GetView<T> {
- const BasePage({super.key});
- @override
- Widget build(BuildContext context) {
- return Container(
- color: backgroundColor(),
- child: buildBody(context),
- );
- }
- Widget? buildBody(BuildContext context);
- Color backgroundColor() {
- return const Color(0xFF1A1A1A);
- }
- }
|