2022-12-29 11:10:47 +03:00

38 lines
1.0 KiB
Dart

import 'package:flutter/material.dart';
import '/gallery_picker.dart';
class ReloadGallery extends StatelessWidget {
late Config config;
Function() onpressed;
ReloadGallery(Config? config, {super.key, required this.onpressed}) {
this.config = config ?? Config();
}
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: config.backgroundColor,
body: Center(
child: TextButton(
style: ButtonStyle(
foregroundColor: MaterialStateProperty.all<Color>(Colors.blue),
),
child: Container(
height: 50,
padding: EdgeInsets.symmetric(horizontal: 30, vertical: 10),
decoration: BoxDecoration(
color: Colors.blue, borderRadius: BorderRadius.circular(10)),
child: const Center(
child: Text(
"Reload Gallery",
style: TextStyle(color: Colors.white),
),
)),
onPressed: () {
onpressed();
},
)),
);
}
}