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';
|
2022-11-30 05:22:37 +01:00
|
|
|
|
2021-11-30 10:28:13 +01:00
|
|
|
import 'package:gecko/globals.dart';
|
2022-08-23 00:25:16 +02:00
|
|
|
import 'package:gecko/models/widgets_keys.dart';
|
2021-11-30 10:28:13 +01:00
|
|
|
import 'package:flutter/material.dart';
|
2022-12-07 23:10:28 +01:00
|
|
|
import 'package:gecko/widgets/bottom_app_bar.dart';
|
2022-12-02 02:11:22 +01:00
|
|
|
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 {
|
2022-09-12 11:22:26 +02:00
|
|
|
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;
|
2022-09-12 11:22:26 +02:00
|
|
|
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
|
|
|
),
|
|
|
|
),
|
2022-12-07 23:10:28 +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
|
|
|
]));
|
|
|
|
}
|
|
|
|
}
|