You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
643 B
Dart
26 lines
643 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
Widget layout(keymap, chosenLayout, showVariant) {
|
|
return Container(
|
|
color: const Color.fromARGB(100, 169, 0, 255),
|
|
padding: const EdgeInsets.all(8),
|
|
child: ElevatedButton(
|
|
onPressed: () {
|
|
chosenLayout = keymap;
|
|
showVariant();
|
|
},
|
|
style: TextButton.styleFrom(
|
|
primary: Colors.white,
|
|
backgroundColor: const Color.fromARGB(100, 169, 0, 255),
|
|
padding: const EdgeInsets.all(10),
|
|
),
|
|
child: Text(
|
|
keymap.layout,
|
|
style: const TextStyle(
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|