gecko/lib/screens/activity.dart

37 lines
1.1 KiB
Dart
Raw Normal View History

2022-09-05 04:15:27 +02:00
// ignore_for_file: must_be_immutable
2022-06-18 01:50:06 +02:00
import 'package:easy_localization/easy_localization.dart';
2021-11-30 10:28:13 +01:00
import 'package:gecko/globals.dart';
import 'package:gecko/models/widgets_keys.dart';
2021-11-30 10:28:13 +01:00
import 'package:flutter/material.dart';
import 'package:gecko/widgets/bottom_app_bar.dart';
import 'package:gecko/widgets/header_profile.dart';
2022-12-10 06:09:05 +01:00
import 'package:gecko/widgets/history_query.dart';
2021-11-30 10:28:13 +01:00
2022-12-10 06:09:05 +01:00
class ActivityScreen extends StatelessWidget with ChangeNotifier {
ActivityScreen({required this.address, required this.avatar, this.username})
: super(key: keyActivityScreen);
final String address;
2021-12-23 12:36:09 +01:00
final String? username;
final Image avatar;
2021-11-30 10:28:13 +01:00
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
elevation: 0,
toolbarHeight: 60 * ratio,
2022-06-18 01:50:06 +02:00
title: SizedBox(
2021-11-30 10:28:13 +01:00
height: 22,
2022-06-18 01:50:06 +02:00
child: Text('accountActivity'.tr()),
2021-11-30 10:28:13 +01:00
),
),
bottomNavigationBar: const GeckoBottomAppBar(),
2021-11-30 10:28:13 +01:00
body: Column(children: <Widget>[
2022-12-10 06:09:05 +01:00
HeaderProfile(address: address, username: username),
HistoryQuery(address: address),
2021-11-30 10:28:13 +01:00
]));
}
}