Updated and added comments
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
/// Returns a platform-adaptive page route based on the current platform.
|
||||
/// - On iOS, it returns a [CupertinoPageRoute].
|
||||
/// - On other platforms, it returns a [MaterialPageRoute].
|
||||
Route<T> adaptivePageRoute<T>({
|
||||
required Widget Function(BuildContext) builder,
|
||||
bool fullscreenDialog = false,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/// Application-wide constants
|
||||
class Constants {
|
||||
Constants._(); // Private constructor to prevent instantiation
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
/// Theme class that defines colors, border radius, padding, and decorations
|
||||
class CustomTheme {
|
||||
CustomTheme._(); // Private constructor to prevent instantiation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user