Professional Documents
Culture Documents
Empat Lipatx
Empat Lipatx
Xz
C
Zc
Z
C
xzc
```dart
import 'package:flutter/material.dart';
const DialogRekeningView({
Key? key,
required this.widgetSamping,
required this.namaRek,
required this.strDeksripsi,
this.onTap,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return GestureDetector(
onTap: onTap, // Call the onTap callback when tapped
child: Container(
// Your dialog content here
child: Column(
children: [
// Add your content here
Text(namaRek),
Text(strDeksripsi),
widgetSamping,
],
),
),
);
}
}
```
```dart
DialogRekeningView(
widgetSamping: YourWidget(),
namaRek: 'Your Name',
strDeksripsi: 'Your Description',
onTap: () {
// Your onTap action here
print('Widget tapped!');
},
)
```
Now, when you tap the `DialogRekeningView` widget, the provided `onTap` callback will be
executed.