production

This commit is contained in:
2026-08-28 11:13:15 +05:30
parent d7348e253f
commit 5723d373b2
162 changed files with 17924 additions and 7026 deletions

View File

@@ -23,6 +23,7 @@ import 'package:miler/views/Dashboard/profile/informations/order_alert_sound.dar
import 'package:miler/views/Dashboard/summary/summary.dart';
import 'package:miler/views/helpers/constants/miler_type.dart';
import 'package:miler/views/helpers/constants/Colorconstants.dart';
import 'package:miler/views/helpers/constants/narrative.dart';
import 'package:miler/views/helpers/constants/design_constants.dart';
import 'package:miler/views/helpers/widgets/miler_app_bar.dart';
import 'package:miler/views/helpers/widgets/app_widgets.dart';
@@ -163,13 +164,26 @@ class _ProfilePageState extends State<ProfilePage> {
// rows on the bare background, so the whole tab read a shade dirtier than
// the three either side of it. Four tabs of one app should not disagree
// about what colour the paper is.
// The brand shows through the sheet's two top corners — see [MilerSheet].
// ── The corner has to have something behind it ──
//
// Account had the sheet but not the shape: its two top corners clipped
// onto a white ground, so the curve revealed white and read as a
// rounding artefact rather than as the brand coming through. The brand
// goes behind the sheet, the same as the other three tabs; the page's
// own colour is the sheet's [MilerSurface.canvas].
backgroundColor: ColorConstants.primary,
// Account was the odd tab out: no top bar at all, just a 28sp inline
// heading scrolling away with the content, while the other three sat
// under a fixed branded bar. Four tabs of one app should not disagree
// about where the page title lives.
appBar: MilerAppBar(title: 'Account', trailing: _bell()),
appBar: MilerAppBar(
title: 'Account',
trailing: _bell(),
// The bar's curve opens onto whatever is directly under it, and under
// this bar is the sheet's canvas rather than the app's paper. See
// [milerBrandSurface].
pageColor: Narrative.canvas,
),
// ── Pull to refresh ──
//
// A pull here used to drag the page off the bottom of the screen and
@@ -187,7 +201,7 @@ class _ProfilePageState extends State<ProfilePage> {
// layered pages and one flat one. Same recipe here: canvas ground, one
// panel per section, the labels on the canvas between them.
body: MilerSheet(
color: MilerSurface.canvas,
color: Narrative.canvas,
child: SettingsBody(
onRefresh: _refresh,
// The page's single left edge — the same gutter Activity uses, so a
@@ -233,8 +247,8 @@ class _ProfilePageState extends State<ProfilePage> {
// he has finished today, which is the glance he actually makes
// between stops.
Padding(
padding: EdgeInsetsDirectional.only(
start: MilerSurface.panelGutter + MilerSurface.panelPad,
padding: const EdgeInsetsDirectional.only(
start: MilerSurface.panelGutter,
),
child: const SettingsLabel('Money'),
),
@@ -257,8 +271,8 @@ class _ProfilePageState extends State<ProfilePage> {
SizedBox(height: 20.h),
Padding(
padding: EdgeInsetsDirectional.only(
start: MilerSurface.panelGutter + MilerSurface.panelPad,
padding: const EdgeInsetsDirectional.only(
start: MilerSurface.panelGutter,
),
child: const SettingsLabel('Account'),
),
@@ -305,8 +319,8 @@ class _ProfilePageState extends State<ProfilePage> {
SizedBox(height: 20.h),
Padding(
padding: EdgeInsetsDirectional.only(
start: MilerSurface.panelGutter + MilerSurface.panelPad,
padding: const EdgeInsetsDirectional.only(
start: MilerSurface.panelGutter,
),
child: const SettingsLabel('Support'),
),