mirror of
https://github.com/hmalik144/days_left_flutter.git
synced 2025-12-10 03:05:21 +00:00
- Implementation of firebase - Implementation of dependency injection Took 11 hours 26 minutes
23 lines
460 B
Dart
23 lines
460 B
Dart
|
|
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class ButtonWidget extends StatelessWidget{
|
|
final String label;
|
|
final Function onPressed;
|
|
|
|
ButtonWidget(this.label, {this.onPressed});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
margin: EdgeInsets.only(top: 20, bottom: 12),
|
|
child: ElevatedButton(
|
|
onPressed: onPressed,
|
|
child: Text(label),
|
|
),
|
|
);
|
|
}
|
|
|
|
|
|
} |