changed app bar with normal package

This commit is contained in:
m1 2022-03-16 07:59:53 +01:00
parent 8822f16dd3
commit 5088ba164b
3 changed files with 16 additions and 36 deletions

View file

@ -6,7 +6,6 @@ import 'package:flutter/material.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
import 'package:flutter_password_strength/flutter_password_strength.dart'; import 'package:flutter_password_strength/flutter_password_strength.dart';
import 'package:percent_indicator/percent_indicator.dart';
import 'package:photos/core/configuration.dart'; import 'package:photos/core/configuration.dart';
import 'package:photos/models/billing_plan.dart'; import 'package:photos/models/billing_plan.dart';
import 'package:photos/services/billing_service.dart'; import 'package:photos/services/billing_service.dart';
@ -18,6 +17,7 @@ import 'package:photos/ui/web_page.dart';
import 'package:photos/utils/data_util.dart'; import 'package:photos/utils/data_util.dart';
import 'package:photos/utils/dialog_util.dart'; import 'package:photos/utils/dialog_util.dart';
import 'package:photos/utils/email_util.dart'; import 'package:photos/utils/email_util.dart';
import 'package:step_progress_indicator/step_progress_indicator.dart';
class EmailEntryPage extends StatefulWidget { class EmailEntryPage extends StatefulWidget {
EmailEntryPage({Key key}) : super(key: key); EmailEntryPage({Key key}) : super(key: key);
@ -64,6 +64,7 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
final screenWidth = MediaQuery.of(context).size.width; final screenWidth = MediaQuery.of(context).size.width;
final appBar = AppBar( final appBar = AppBar(
elevation: 0,
leading: Icon( leading: Icon(
Icons.arrow_back, Icons.arrow_back,
color: CupertinoColors.black, color: CupertinoColors.black,
@ -72,33 +73,12 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
tag: "sign_up", tag: "sign_up",
child: Material( child: Material(
type: MaterialType.transparency, type: MaterialType.transparency,
child: Row( child: StepProgressIndicator(
children: [ totalSteps: 4,
LinearPercentIndicator( currentStep: 1,
width: screenWidth * 0.19, selectedColor: Theme.of(context).buttonColor,
lineHeight: 4, roundedEdges: Radius.circular(10),
percent: 0.5, unselectedColor: Theme.of(context).bottomAppBarColor,
backgroundColor: Colors.grey[200],
progressColor: Theme.of(context).buttonColor),
LinearPercentIndicator(
width: screenWidth * 0.19,
lineHeight: 4,
percent: 0.5,
backgroundColor: Colors.grey[200],
progressColor: Theme.of(context).buttonColor),
LinearPercentIndicator(
width: screenWidth * 0.19,
lineHeight: 4,
percent: 0.5,
backgroundColor: Colors.grey[200],
progressColor: Theme.of(context).buttonColor),
LinearPercentIndicator(
width: screenWidth * 0.19,
lineHeight: 4,
percent: 0.5,
backgroundColor: Colors.grey[200],
progressColor: Theme.of(context).buttonColor),
],
)), )),
), ),
); );

View file

@ -828,13 +828,6 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.11.1" version: "1.11.1"
percent_indicator:
dependency: "direct main"
description:
name: percent_indicator
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.0"
permission_handler: permission_handler:
dependency: transitive dependency: transitive
description: description:
@ -1110,6 +1103,13 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.10.0" version: "1.10.0"
step_progress_indicator:
dependency: "direct main"
description:
name: step_progress_indicator
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
stream_channel: stream_channel:
dependency: transitive dependency: transitive
description: description:

View file

@ -79,7 +79,6 @@ dependencies:
page_transition: ^2.0.2 page_transition: ^2.0.2
path_provider: ^2.0.1 path_provider: ^2.0.1
pedantic: ^1.9.2 pedantic: ^1.9.2
percent_indicator: ^4.0.0
photo_manager: photo_manager:
git: "https://github.com/ente-io/flutter_photo_manager.git" git: "https://github.com/ente-io/flutter_photo_manager.git"
photo_view: ^0.13.0 photo_view: ^0.13.0
@ -95,6 +94,7 @@ dependencies:
shared_preferences: ^2.0.5 shared_preferences: ^2.0.5
sqflite: ^2.0.0+3 sqflite: ^2.0.0+3
sqflite_migration: ^0.3.0 sqflite_migration: ^0.3.0
step_progress_indicator: ^1.0.2
super_logging: super_logging:
path: thirdparty/super_logging path: thirdparty/super_logging
syncfusion_flutter_core: ^19.2.49 syncfusion_flutter_core: ^19.2.49