37 lines
1.1 KiB
Dart
37 lines
1.1 KiB
Dart
// ignore_for_file: must_be_immutable
|
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
|
|
import 'package:gecko/globals.dart';
|
|
import 'package:gecko/models/widgets_keys.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:gecko/widgets/bottom_app_bar.dart';
|
|
import 'package:gecko/widgets/header_profile.dart';
|
|
import 'package:gecko/widgets/history_query.dart';
|
|
|
|
class ActivityScreen extends StatelessWidget with ChangeNotifier {
|
|
ActivityScreen({required this.address, required this.avatar, this.username})
|
|
: super(key: keyActivityScreen);
|
|
final String address;
|
|
final String? username;
|
|
final Image avatar;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
elevation: 0,
|
|
toolbarHeight: 60 * ratio,
|
|
title: SizedBox(
|
|
height: 22,
|
|
child: Text('accountActivity'.tr()),
|
|
),
|
|
),
|
|
bottomNavigationBar: const GeckoBottomAppBar(),
|
|
body: Column(children: <Widget>[
|
|
HeaderProfile(address: address, username: username),
|
|
HistoryQuery(address: address),
|
|
]));
|
|
}
|
|
}
|