Skip to content

Commit

Permalink
Draft
Browse files Browse the repository at this point in the history
  • Loading branch information
nqhhdev committed Apr 10, 2024
1 parent 5cc7e4d commit ad32e1f
Show file tree
Hide file tree
Showing 9 changed files with 436 additions and 297 deletions.
2 changes: 0 additions & 2 deletions lib/pages/bootstrap/bootstrap_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,6 @@ class BootstrapDialogState extends State<BootstrapDialog> {
isDestructiveAction: true,
)) {
await TomBootstrapDialog(
wipe: true,
wipeRecovery: true,
client: widget.client,
).show().then(
(value) => Navigator.of(
Expand Down
63 changes: 63 additions & 0 deletions lib/pages/bootstrap/linear_progress_indicator_widget.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
import 'package:flutter/material.dart';
import 'package:linagora_design_flutter/linagora_design_flutter.dart';

class TomBootstrapProgressItem extends StatelessWidget {
final String titleProgress;
final String? semanticsLabel;
final bool isCompleted;
final bool isProgress;

const TomBootstrapProgressItem({
super.key,
required this.titleProgress,
this.semanticsLabel,
this.isCompleted = false,
this.isProgress = false,
});

@override
Widget build(BuildContext context) {
return Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Icon(
Icons.check_circle_outline,
size: 30,
color: isCompleted == true
? Theme.of(context).colorScheme.primary
: LinagoraSysColors.material().tertiary,
),
const SizedBox(
width: 16,
),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.only(
bottom: 8,
),
child: Text(
titleProgress,
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
color: LinagoraSysColors.material().tertiary,
),
),
),
LinearProgressIndicator(
value: isProgress == true
? null
: isCompleted
? 1
: 0,
minHeight: 4,
borderRadius: BorderRadius.circular(11),
),
],
),
),
],
);
}
}
Loading

0 comments on commit ad32e1f

Please sign in to comment.